I see the bugzilla ID: 
        http://issues.apache.org/bugzilla/show_bug.cgi?id=33368

Anyone know if this is present in Tomcat 4.1.30?

----- Original Message -----
From: "Robert Wille" <[EMAIL PROTECTED]>
To: <tomcat-user@jakarta.apache.org>
Sent: Wednesday, February 02, 2005 1:25 PM
Subject: RE: Memory leak in tomcat 5.0.28


I've figured out my problem. I'm posting what I've discovered for the
benefit of others. The SystemLogHandler uses a map called logs where the
key
is a ThreadWithAttributes and the value is a stack of CaptureLogs. The
problem is that when a thread dies, the ThreadWithAttributes object
lives
forever because the map is never cleaned out. Threads come and go in the
thread pool, so stuff keeps accumulating there forever. You can prevent
the
problem by turning off swallowOutput.

logs should be a ThreadLocal, not a map. That way the
ThreadWithAttributes
objects can be collected (as well as the stack of CaptureLogs).


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

Reply via email to