tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 49159] Improve ThreadLocal memory leak clean-up
Date Thu, 23 Sep 2010 14:49:50 GMT

--- Comment #5 from Pid <> 2010-09-23 10:49:43 EDT ---
Created an attachment (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:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message