tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcus Better <mar...@better.se>
Subject Timer leak detection, false positives
Date Fri, 11 Jun 2010 13:13:53 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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?

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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAkwSNpIACgkQXjXn6TzcAQnjvgCg6K4tHVM9v2hFB4IBOYnPOeij
7EEAoI/5JtwAbb3BvD5JP/cvmOZWvlBw
=tsrG
-----END PGP SIGNATURE-----



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


Mime
View raw message