https://issues.apache.org/bugzilla/show_bug.cgi?id=49159

--- Comment #1 from sylvain.laur...@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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to