Home > Uncategorized > ThreadLocal, Spring and Tomcat 6.0.24

ThreadLocal, Spring and Tomcat 6.0.24

March 8th, 2010

Hey all

As you upgrade to the apps to 6.0.24 for the coming web cluster you will probably find that any app that contains spring is throwing ThreadLocal errors when you shut Tomcat down, as below:

SEVERE: A web application appears to have started a thread named [schedulerFactory_Worker-9] but has failed to stop it. This is very likely to create a memory leak.
Mar 8, 2010 12:07:36 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: A web application appears to have started a thread named [schedulerFactory_Worker-10] but has failed to stop it. This is very likely to create a memory leak.
Mar 8, 2010 12:07:36 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: A web application appears to have started a thread named [schedulerFactory_Worker-2] but has failed to stop it. This is very likely to create a memory leak.

It would appear there has been a change in Tomcat between 6.0.20 and 6.0.24 where Tomcat is trying to detect possible memory leaks. Spring has this to say about it:

http://forum.springsource.org/showthread.php?t=84202

Essentially at the moment they believe this is an erroneous error and that Tomcat perhaps needs to fix this. As a result at the moment this is not an error you need to remove. We will have to live with it on the new web-cluster until one side or the other determines a resolution.

Gerwood

Categories: Uncategorized Tags:
Comments are closed.