I'm running a Tomcat Container version 6.0.26 with JDK 1.6_20 in Linux
with Restlet 2.0 RC3.
I'm seeing a lot of the following when I shut my Tomcat instance down:
SEVERE: A web application created a ThreadLocal with key of type
[java.lang.ThreadLocal] (value [java.lang.threadlo...@3fb0ed]) and a
value of type [org.restlet.Application] (value
[org.restlet.applicat...@b5423f]) but failed to remove it when the web
application was stopped. To prevent a memory leak, the ThreadLocal has
been forcibly removed.
Apr 30, 2010 1:28:55 PM org.apache.catalina.loader.WebappClassLoader
clearThreadLocalMap
SEVERE: A web application created a ThreadLocal with key of type
[java.lang.ThreadLocal] (value [java.lang.threadlo...@15306c6]) and a
value of type [org.restlet.Response] (value [WAR/null 200 The request
has succeeded]) but failed to remove it when the web application was
stopped. To prevent a memory leak, the ThreadLocal has been forcibly
removed.
Apr 30, 2010 1:28:55 PM org.apache.catalina.loader.WebappClassLoader
clearThreadLocalMap
SEVERE: A web application created a ThreadLocal with key of type
[java.lang.ThreadLocal] (value [java.lang.threadlo...@1e1cb7d]) and a
value of type [org.restlet.engine.component.ChildContext] (value
[org.restlet.engine.component.childcont...@f683b0]) but failed to remove
it when the web application was stopped. To prevent a memory leak, the
ThreadLocal has been forcibly removed.
If I test it long enough, the Container returns with an
OutOfMemoryException:
java.lang.OutOfMemoryError: unable to create new native thread
java.lang.Thread.start0(Native Method)
java.lang.Thread.start(Thread.java:597)
java.util.concurrent.ThreadPoolExecutor.addIfUnderCorePoolSize(ThreadPoolExecutor.java:703)
java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:652)
java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:78)
java.util.concurrent.Executors$DelegatedExecutorService.submit(Executors.java:600)
org.restlet.engine.http.connector.BaseHelper.start(BaseHelper.java:461)
org.restlet.engine.http.connector.BaseClientHelper.start(BaseClientHelper.java:652)
org.restlet.engine.http.connector.HttpClientHelper.start(HttpClientHelper.java:58)
org.restlet.Client.start(Client.java:350)
org.restlet.Restlet.handle(Restlet.java:217)
org.restlet.Client.handle(Client.java:229)
org.restlet.Client.handle(Client.java:223)
ca.nrc.cadc.restlet.freemarker.StandardHeaderTemplateDirective.execute(StandardHeaderTemplateDirective.java:104)
I couldn't see any bugs related to this. Any insight into this?
Thank you!
Dustin
--
Dustin N. Jenkins | Tel/Tél: 250.363.3101 | [email protected]
facsimile/télécopieur: (250) 363-0045
National Research Council Canada | 5071 West Saanich Rd, Victoria BC.
V9E 2E7
Conseil national de recherches Canada | 5071, ch. West Saanich, Victoria
(C.-B) V9E 2E7
Government of Canada | Gouvernement du Canada
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2599992