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 Re: memory leak with shrinking thread pools
Date Wed, 11 Apr 2007 16:38:31 GMT
attached is an example patch using weak references that would solve this 
problem,
I'd like to get thoughts on this patch, please comment

if the attachment doesn't make it
http://people.apache.org/~fhanik/mem-leak-diff.patch

Filip

Filip Hanik - Dev Lists wrote:
> 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