tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Filip Hanik - Dev Lists <>
Subject Re: memory leak with shrinking thread pools
Date Wed, 11 Apr 2007 22:46:59 GMT
Remy Maucherat wrote:
> Filip Hanik - Dev Lists wrote:
>> 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
> For sure it's not the right way to do it (the right way being 
> unregistering the appropriate management artifacts when the associated 
> resources are released - if it's not possible, then it means the 
> design of the said resources is broken).
you're of course right, I think I simply need to get rid of the thread 
local cache, and use the processor cache instead.
do you have any idea of the performance penalty? I'd probably use a 
ConcurrentLinkedQueue or something instead of synchronized{processorCache}

> Rémy
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

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

View raw message