Matthew Kerle wrote:
> let me know if I read that right...
> 
> Bill Barker wrote:
>> When you have the log4j jar in WEB-INF/lib, the it ends up being used
>> by Tomcat for some of it's logging.  As a result, it can cause memory
>> leaks and other weird errors when a context is stopped and started. 
>> This isn't a problem with j.u.l since the classes are loaded by the
>> system classloader. That is why Tomcat decided to use j.u.l for it's
>> internal logging by default.
>>   
> does this mean that including log4j in my deployment WAR could
> potentially cause memory leaks and problems with tomcat? I've never
> heard of this, I thought that log4j played well with others, has anyone
> else experienced this / are there any links that describe this problem/

Yes. Have a look in Bugzilla for details. Most have been fixed but I
think there are still a few scenarios that can cause trouble.

FWIW, I use log4j in my own web apps at work and they stay up for
months with a fair number of reloads and no obvious memory leaks.

Mark


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to