RE: How to measue performance? Log4j on/off.

2003-12-04 Thread Justin Brister
Jim,

if you have any money to spend, it would be worth running a code profiler
such as JProbe over the code. If you don't have access to such a tool /
money, then you could try running JMeter to benchmark the site.

J

-Original Message-
From: Jim Lynch [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 04, 2003 1:40 PM
To: Tomcat Users List
Subject: How to measue performance? Log4j on/off.


We have a performance issue with a web page being served via 
Tomcat/Apache.  I don't think it has anything to do with Tomcat, but I 
am being asked to turn debug logging off to help improve it.  I'm 
resisting because the output has been extremely valuable in solving 
problems that still crop up and to find out what the users are really 
doing as opposed to what they said they did.

That said, is there a definitive way I can compare the performance of 
the site before and after turning the logging off?  Other than a 
stopwatch?

Thanks,
Jim.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How to measue performance? Log4j on/off.

2003-12-04 Thread Justin Brister
Graham,

unfortunately, Java does not have a precompiler (although I think there are
some third party pre-processors about).

J

-Original Message-
From: Graham Reeds [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 04, 2003 2:05 PM
To: Tomcat Users List
Subject: Re: How to measue performance? Log4j on/off.



As an aside, make sure you have all log4j Logger#debug statements
enclosed in if(logger.isDebugEnabled()) { ... } clauses -- that's an
order of magnitude or so runtime performance improvement.


Showing my C heritage here, but can't you do something like

Log(an error has occurred);

And in Log have a directive like

class Logger()
{
void Log(string msg)
{
#ifdef DEBUG
... log message ..
#endif
};

And so you can compile a version with debug or no debug.  Those if()
statements are still going to take time to process, even if there is no
logging going on.

G.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Hosting SSL clients within Tomcat

2003-11-19 Thread Justin Brister
FYI,

I have now cracked this problem. I had something of an epiphany last night
-)

The problem lies with Bill Gates! The default .keystore is created in the
current Windows users home directory. The path to this directory has a white
space in it, which the JVM does not like. If you try and use your own
keystore, Tomcat does not like it. 

The trick is to create the default .keystore file, import your client
certificate and then copyt the .keystore to another location with no white
space in the path. You then specify the location of the .keystore and the
password for the store on the line in the catalina.bat file that starts
Tomcat.

Obvious

Of course the better alternative is to develop and host using Linux or
Solaris (but my client won't do that!!!)

Later 

email: [EMAIL PROTECTED]
http://www.mojoco.biz/




-Original Message-
From: Justin Brister [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 18, 2003 6:04 PM
To: '[EMAIL PROTECTED]'
Subject: Hosting SSL clients within Tomcat


I am trying to open a connection to an SSL server hosting WebServices. I am
using the Glue libraries to abstract away all the nasty Web Service stuff,
and my WebService client is implemented as a Servlet. I have imported the
SSL certificate into my .keystore

If I run my client code as a stand-alone app. it works OK
If I use the keystore to configure SSL connections for Tomcat it is fine

However, if I run my client code from within a servlet, Tomcat complains
that either the trust store has been tampered with or the password is
invalid.

Does anyone have any idea how I can configure Tomcat to find the truststore
and load the appropriate certificates for use by my SSL client?

Thanks,

J

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Hosting SSL clients within Tomcat

2003-11-18 Thread Justin Brister
I am trying to open a connection to an SSL server hosting WebServices. I am
using the Glue libraries to abstract away all the nasty Web Service stuff,
and my WebService client is implemented as a Servlet. I have imported the
SSL certificate into my .keystore

If I run my client code as a stand-alone app. it works OK
If I use the keystore to configure SSL connections for Tomcat it is fine

However, if I run my client code from within a servlet, Tomcat complains
that either the trust store has been tampered with or the password is
invalid.

Does anyone have any idea how I can configure Tomcat to find the truststore
and load the appropriate certificates for use by my SSL client?

Thanks,

J

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]