Kek created Bug JRUBY-7187
Issue Type: Bug Bug
Affects Versions: JRuby 1.7.4
Assignee: Unassigned
Attachments: TestRubyServlet.zip
Components: Embedding
Created: 26/Jul/13 1:49 AM
Description:

I´m not sure, what is the right place for jruby issue tracking, so I put the reference here: https://github.com/jruby/jruby/issues/920

In my opinion all allocated resources should be released in scriptingContainer.terminate(), but when we shutdown the Tomcat instance, we got following warnings:

VII 26, 2013 6:57:35 DOP. org.apache.catalina.core.StandardService stopInternal
INFO: Stopping service Catalina
VII 26, 2013 6:57:36 DOP. org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/test] appears to have started a thread named [FileWatchdog] but has failed to stop it. This is very likely to create a memory leak.
VII 26, 2013 6:57:36 DOP. org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
SEVERE: The web application [/test] created a ThreadLocal with key of type [org.joni.StackMachine$1] (value [org.joni.StackMachine$1@13ec94f]) and a value of type [java.lang.ref.WeakReference] (value [java.lang.ref.WeakReference@112871a]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
VII 26, 2013 6:57:36 DOP. org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
SEVERE: The web application [/test] created a ThreadLocal with key of type [org.joni.StackMachine$1] (value [org.joni.StackMachine$1@13ec94f]) and a value of type [java.lang.ref.WeakReference] (value [java.lang.ref.WeakReference@163d93b]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
VII 26, 2013 6:57:36 DOP. org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
SEVERE: The web application [/test] created a ThreadLocal with key of type [org.joni.StackMachine$1] (value [org.joni.StackMachine$1@13ec94f]) and a value of type [java.lang.ref.WeakReference] (value [java.lang.ref.WeakReference@4ae99f]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
VII 26, 2013 6:57:36 DOP. org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
VII 26, 2013 6:57:36 DOP. org.apache.coyote.AbstractProtocol stop
INFO: Stopping ProtocolHandler ["http-bio-8042"]

Environment: Oracle JDK7u25, Tomcat 7.042, Windows7
Project: JRuby
Priority: Major Major
Reporter: Kek
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

Reply via email to