-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dale,

On 12/14/2010 6:13 PM, Dale Ogilvie wrote:
> There are a few of them, examples below. Some work for us to track down
> it would seem.
> 
> SEVERE: The web application [/OLP] appears to have started a thread
> named [ActiveMQ Scheduler] but has failed to stop it. This is very
> likely to create a memory leak.

Can you confirm that this thread is still running after context
shutdown? Often, threads are in the process of stopping as the context
is shutting down and you just have bad luck with a race condition that
results in a report like this. Inspect the JVM a few seconds after the
context has stopped to see if this thread has actually shut down.

> SEVERE: The web application [/OLP] appears to have started a thread
> named [InactivityMonitor Async Task:
> java.util.concurrent.threadpoolexecutor$wor...@413fdef7[state = 0, empty
> queue]] but has failed to stop it. This is very likely to create a
> memory leak.

Also, are there listeners you have launching things on init() but
failing to call dispose(), destroy(), shutdown(), etc. on them in the
destroy() method?

> SEVERE: The web application [/OLP] appears to have started a thread
> named [TcpSocketClose:
> java.util.concurrent.threadpoolexecutor$wor...@d91afbc[state = 0, empty
> queue]] but has failed to stop it. This is very likely to create a
> memory leak.
> SEVERE: The web application [/OLP] appears to have started a thread
> named
> [org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-1]
> but has failed to stop it. This is very likely to create a memory leak.
> SEVERE: The web application [/OLP] created a ThreadLocal with key of
> type [java.lang.ThreadLocal] (value [java.lang.threadlo...@5fb5d830])
> and a value of type
> org.springframework.security.core.context.SecurityContextImpl] (value
> [org.springframework.security.core.context.securitycontexti...@ffffffff:
> Null authentication]) but failed to remove it when the web application
> was stopped. This is very likely to create a memory leak.

Finally, what version of Spring are you using? With the help of Tomcat's
leak detection capabilities, many libraries have made improvements and
eliminated these leaks... I believe that Spring is one of those libraries.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk0JD7kACgkQ9CaO5/Lv0PBTewCaApLWkTZkDWnglEZmBpeJoGpJ
Ek4AoJ/c8PWvwS5wabF++SnTnpYbQSTQ
=nncP
-----END PGP SIGNATURE-----

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

Reply via email to