You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2010/04/26 22:40:54 UTC
DO NOT REPLY [Bug 49159] Improve ThreadLocal memory leak clean-up
https://issues.apache.org/bugzilla/show_bug.cgi?id=49159
--- Comment #1 from sylvain.laurent@gmail.com 2010-04-26 16:40:49 EDT ---
I did experiment with cleaning the threadlocals from their owning thread by
doing it in
org.apache.tomcat.util.threads.ThreadPoolExecutor.afterExecute(Runnable,
Throwable)
It does work (i.e. it improves leak protection for the
http://wiki.apache.org/tomcat/MemoryLeakProtection#webappClassInstanceAsThreadLocalIndirectValue
case ), but since it clear all thread locals after each request, it breaks some
optimizations that are done by some frameworks, applications or even tomcat
itself.
I'm experimenting with the approach of recreating the thread pool, it seems
cleaner and more efficient.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org