tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pid <...@pidster.com>
Subject Re: Timer leak detection, false positives
Date Fri, 11 Jun 2010 13:41:21 GMT
On 11/06/2010 14:13, Marcus Better wrote:
> Hi,
> 
> I run a Grails app on Tomcat 6.0.26 (OpenJDK 6, Debian). When undeploying,
> it reports several leaked objects, including a timer thread that was left
> running.
> 
> This thread belongs to EhCache, and by inspecting the code, it looks like
> the timer should be cancelled properly when the application is shut down.
> Therefore I suspect that it might be a false positive. Is this likely or
> not?

It's possible.

Can you build a small test case in web app form that replicates this?


p

> The app uses Spring's EhCacheManagerFactoryBean, which calls
> EhCacheManager.shutdown() during application context shutdown. That in turn
> calls cancel() and purge() on the Timer.
> 
> Cheers,
> 
> Marcus

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




Mime
View raw message