cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruno Dumon <>
Subject warning for users of httpclient / HttpProxyGenerator
Date Thu, 20 Mar 2003 13:16:09 GMT
On a default Cocoon installation on JDK 1.4, the commons-httpclient used
by HttpProxyGenerator will use Java 1.4 Logging unless otherwise
configured (or unless log4j is present). The implementation of the
Jdk14Logger in commons logging is however extremely slow, due to the
fact it will each time create an exception to extract the callers method
name, even when logging is not enabled.

The simple solution is to just drop log4j.jar in WEB-INF/lib, or
configure commons-logging in another way.

I did some tests using JMeter and HttpProxyGenerator, and it's more than
two times faster when not using Jdk14Logger (average over 1000 requests:
28 ms vs 81 ms).

I've submitted a patch to commons bugzilla (nr 18184) to address this.

Bruno Dumon                   
Outerthought - Open Source, Java & XML Competence Support Center                

View raw message