tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Filip Hanik - Dev Lists <devli...@hanik.com>
Subject memory leak with shrinking thread pools
Date Wed, 11 Apr 2007 15:38:48 GMT
Thanks to Peter Rossbach for alerting me to this.

If we are using the Executor, and are using shrinking thread pools, the 
RequestGroupInfo collects these objects and never releases them.
The only reason we don't see the problem with the default thread pool, 
is cause it never shrinks, hence it never loses it's thread local 
reference to the object.

Current workarounds are:
1. maxThreads==minSpareThreads
2. Disable JMX

Example of reference tree
http://people.apache.org/~fhanik/shrinking-pool-leak.html

Filip

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


Mime
View raw message