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

2003-12-04 Thread Shapira, Yoav
, December 04, 2003 8:44 AM To: 'Tomcat Users List' Subject: RE: How to measue performance? Log4j on/off. 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

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

2003-12-04 Thread Graham Reeds
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

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:

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

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

2003-12-04 Thread Jim Lynch
If it were my boss wanting to do the measurement, I'd have money, but I'm trying to keep him off my back, hence no cash. Thanks, Jim. Justin Brister wrote: 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

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

2003-12-04 Thread Ben Souther
There is a hack to accomplish similar results. If you declare a constant boolean variable as false and use it in your branch statement the compiler will exclude the entire statement. static final boolean DEBUG = false; if(DEBUG){ //conditional code goes here } On Thursday 04

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

2003-12-04 Thread Jim Lynch
Shapira Millennium ChemInformatics -Original Message- From: Justin Brister [mailto:[EMAIL PROTECTED] Sent: Thursday, December 04, 2003 8:44 AM To: 'Tomcat Users List' Subject: RE: How to measue performance? Log4j on/off. Jim, if you have any money to spend, it would be worth running a code

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

2003-12-04 Thread Shapira, Yoav
improve performance (at runtime, without changing code or using pre-processors), and can help the original poster. Yoav Shapira -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Thursday, December 04, 2003 3:34 PM To: Tomcat Users List Subject: RE: How to measue

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

2003-12-04 Thread Ralph Einfeldt
04, 2003 3:08 PM To: Tomcat Users List Subject: Re: How to measue performance? Log4j on/off. Hi, Yoav, I'll take a look at thos products. I wasn't aware of your other suggestion. I assume you mean it will improve the performance when debugging is turned off thus preventing the debug

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

2003-12-04 Thread Shapira, Yoav
: 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

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

2003-12-04 Thread Shapira, Yoav
be much much more expensive than simply writing a text string to a file. Yoav Shapira Millennium ChemInformatics -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: Thursday, December 04, 2003 9:33 AM To: Tomcat Users List Subject: Re: How to measue performance? Log4j

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

2003-12-04 Thread Ralph Einfeldt
I would expect that the Appenders and Formatters only come into play if debug is enabled. Am I wrong ? -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Thursday, December 04, 2003 3:34 PM To: Tomcat Users List Subject: RE: How to measue performance? Log4j