, 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
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
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:
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
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
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
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
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
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.
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
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
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
12 matches
Mail list logo