tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 49159] Improve ThreadLocal memory leak clean-up
Date Thu, 23 Sep 2010 14:49:50 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=49159

--- Comment #5 from Pid <pidster@apache.org> 2010-09-23 10:49:43 EDT ---
Created an attachment (id=26068)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=26068)
Alternative approach to renewing threads

Instead of completely renewing the entire thread pool, it's possible to do it
incrementally, which might be less invasive, in the event of a large number of
applications being updated at the same time.

This patch adds a TaskThread class and modifies the StandardContextValve. The
goal is to terminate a class after it's used, when it's discovered to be older
than the Context which it last serviced.

This approach wouldn't be as comprehensive as replacing the entire pool, but
should cause the pool to refresh incrementally over time. Further enhancement
could include self-cleaning of thread locals etc.

-- 
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


Mime
View raw message