tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Tomcat Wiki] Trivial Update of "MemoryLeakProtection" by SylvainLaurent
Date Tue, 16 Mar 2010 22:49:16 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification.

The "MemoryLeakProtection" page has been changed by SylvainLaurent.
http://wiki.apache.org/tomcat/MemoryLeakProtection?action=diff&rev1=2&rev2=3

--------------------------------------------------

  
  In this particular case, the leak is detected, a message is logged and internal structures
of the JDK ({{{ThreadLocalMap}}}) are modified to remove the reference to the {{{ThreadLocal}}}
instance.
  
- TODO: add an example of log
+ {{{
+ Mar 16, 2010 11:47:24 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
+ SEVERE: A web application created a ThreadLocal with key of type [test.MyThreadLocal] (value
[test.MyThreadLocal@4dbb9a58]) and a value of type [test.MyCounter] (value [test.MyCounter@57922f46])
but failed to remove it when the web application was stopped. To prevent a memory leak, the
ThreadLocal has been forcibly removed.
+ }}}
  
- Note: this particular leak was actually already cured by previous versions of tomcat, because
static references of classes loaded by the webappclassloader are nullified (see later).
+ '''Note''': this particular leak was actually already cured by previous versions of tomcat,
because static references of classes loaded by the webappclassloader are nullified (see later).
  
  === Webapp class instance as ThreadLocal value ===
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message