You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rave.apache.org by "Chris Geer (JIRA)" <ji...@apache.org> on 2012/08/07 23:49:11 UTC

[jira] [Comment Edited] (RAVE-750) Memory Leak during redeploy

    [ https://issues.apache.org/jira/browse/RAVE-750?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13430654#comment-13430654 ] 

Chris Geer edited comment on RAVE-750 at 8/7/12 9:47 PM:
---------------------------------------------------------

It looks like this was a problem before... (see link to SHINDIG--1132)
                
      was (Author: geerzo):
    It looks like this was a problem before...
                  
> Memory Leak during redeploy
> ---------------------------
>
>                 Key: RAVE-750
>                 URL: https://issues.apache.org/jira/browse/RAVE-750
>             Project: Rave
>          Issue Type: Bug
>    Affects Versions: 0.15
>            Reporter: Chris Geer
>
> Each time you deploy the ROOT.war to a running system there are more an more errors and eventually you get a OutOfMemoryException.
> The first reload gives this:
> [WARNING] [talledLocalContainer] Aug 6, 2012 8:48:35 PM org.apache.catalina.startup.HostConfig checkResources
> [WARNING] [talledLocalContainer] INFO: Undeploying context []
> [WARNING] [talledLocalContainer] Aug 6, 2012 8:48:35 PM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
> [WARNING] [talledLocalContainer] SEVERE: The web application [] registered the JDBC driver [org.h2.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
> [WARNING] [talledLocalContainer] Aug 6, 2012 8:48:35 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
> [WARNING] [talledLocalContainer] SEVERE: The web application [] appears to have started a thread named [com.google.inject.internal.util.$Finalizer] but has failed to stop it. This is very likely to create a memory leak.
> [WARNING] [talledLocalContainer] Aug 6, 2012 8:48:35 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
> [WARNING] [talledLocalContainer] SEVERE: The web application [] created a ThreadLocal with key of type [com.google.inject.internal.InjectorImpl$1] (value [com.google.inject.internal.InjectorImpl$1@523c25bf]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@6ad248c6]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
> [WARNING] [talledLocalContainer] Aug 6, 2012 8:48:36 PM org.apache.catalina.startup.HostConfig deployWAR
> [WARNING] [talledLocalContainer] INFO: Deploying web application archive ROOT.war
> By the third reload you get this:
> [WARNING] [talledLocalContainer] Aug 6, 2012 8:50:03 PM org.apache.catalina.startup.HostConfig checkResources
> [WARNING] [talledLocalContainer] INFO: Undeploying context []
> [WARNING] [talledLocalContainer] Aug 6, 2012 8:50:04 PM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
> [WARNING] [talledLocalContainer] SEVERE: The web application [] registered the JDBC driver [org.h2.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
> [WARNING] [talledLocalContainer] Aug 6, 2012 8:50:04 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
> [WARNING] [talledLocalContainer] SEVERE: The web application [] appears to have started a thread named [com.google.inject.internal.util.$Finalizer] but has failed to stop it. This is very likely to create a memory leak.
> [WARNING] [talledLocalContainer] Aug 6, 2012 8:50:04 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
> [WARNING] [talledLocalContainer] SEVERE: The web application [] created a ThreadLocal with key of type [com.google.inject.internal.InjectorImpl$1] (value [com.google.inject.internal.InjectorImpl$1@b9d2868]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@7ac7c9cc]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
> [WARNING] [talledLocalContainer] Aug 6, 2012 8:50:04 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
> [WARNING] [talledLocalContainer] SEVERE: The web application [] created a ThreadLocal with key of type [org.apache.shindig.common.xml.XmlUtil$2] (value [org.apache.shindig.common.xml.XmlUtil$2@5291af0d]) and a value of type [org.apache.xerces.jaxp.DocumentBuilderImpl] (value [org.apache.xerces.jaxp.DocumentBuilderImpl@5a7ba8d4]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
> [WARNING] [talledLocalContainer] Aug 6, 2012 8:50:04 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
> [WARNING] [talledLocalContainer] SEVERE: The web application [] created a ThreadLocal with key of type [com.google.inject.internal.InjectorImpl$1] (value [com.google.inject.internal.InjectorImpl$1@b9d2868]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@6c8924b4]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
> [WARNING] [talledLocalContainer] Aug 6, 2012 8:50:04 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
> [WARNING] [talledLocalContainer] SEVERE: The web application [] created a ThreadLocal with key of type [org.apache.shindig.common.xml.XmlUtil$2] (value [org.apache.shindig.common.xml.XmlUtil$2@5291af0d]) and a value of type [org.apache.xerces.jaxp.DocumentBuilderImpl] (value [org.apache.xerces.jaxp.DocumentBuilderImpl@1fc8dd17]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
> [WARNING] [talledLocalContainer] Aug 6, 2012 8:50:04 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
> [WARNING] [talledLocalContainer] SEVERE: The web application [] created a ThreadLocal with key of type [com.google.inject.internal.InjectorImpl$1] (value [com.google.inject.internal.InjectorImpl$1@b9d2868]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@3c2b214e]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
> [WARNING] [talledLocalContainer] Aug 6, 2012 8:50:04 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
> [WARNING] [talledLocalContainer] SEVERE: The web application [] created a ThreadLocal with key of type [org.apache.shindig.common.xml.XmlUtil$2] (value [org.apache.shindig.common.xml.XmlUtil$2@5291af0d]) and a value of type [org.apache.xerces.jaxp.DocumentBuilderImpl] (value [org.apache.xerces.jaxp.DocumentBuilderImpl@3397a6be]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
> [WARNING] [talledLocalContainer] Aug 6, 2012 8:50:04 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
> [WARNING] [talledLocalContainer] SEVERE: The web application [] created a ThreadLocal with key of type [com.google.inject.internal.InjectorImpl$1] (value [com.google.inject.internal.InjectorImpl$1@b9d2868]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@29441e68]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
> [WARNING] [talledLocalContainer] Aug 6, 2012 8:50:04 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
> [WARNING] [talledLocalContainer] SEVERE: The web application [] created a ThreadLocal with key of type [org.apache.shindig.common.xml.XmlUtil$2] (value [org.apache.shindig.common.xml.XmlUtil$2@5291af0d]) and a value of type [org.apache.xerces.jaxp.DocumentBuilderImpl] (value [org.apache.xerces.jaxp.DocumentBuilderImpl@37285302]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
> [WARNING] [talledLocalContainer] Aug 6, 2012 8:50:04 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
> [WARNING] [talledLocalContainer] SEVERE: The web application [] created a ThreadLocal with key of type [com.google.inject.internal.InjectorImpl$1] (value [com.google.inject.internal.InjectorImpl$1@b9d2868]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@3861c498]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
> [WARNING] [talledLocalContainer] Aug 6, 2012 8:50:04 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
> [WARNING] [talledLocalContainer] SEVERE: The web application [] created a ThreadLocal with key of type [org.apache.shindig.common.xml.XmlUtil$2] (value [org.apache.shindig.common.xml.XmlUtil$2@5291af0d]) and a value of type [org.apache.xerces.jaxp.DocumentBuilderImpl] (value [org.apache.xerces.jaxp.DocumentBuilderImpl@1ab1f413]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
> [WARNING] [talledLocalContainer] Aug 6, 2012 8:50:04 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
> [WARNING] [talledLocalContainer] SEVERE: The web application [] created a ThreadLocal with key of type [com.google.inject.internal.InjectorImpl$1] (value [com.google.inject.internal.InjectorImpl$1@b9d2868]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@190f1916]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
> [WARNING] [talledLocalContainer] Aug 6, 2012 8:50:05 PM org.apache.catalina.startup.HostConfig deployWAR
> [WARNING] [talledLocalContainer] INFO: Deploying web application archive ROOT.war
> You can recreate this using cargo:run by:
> 1) Start the server with "mvn cargo:run"
> 2) Log into the portal
> 3) Touch the ROOT.war file "touch  target/tomcat6x/webapps/ROOT.war"
> 4) Wait for the war to reload
> 5) Refresh the portal page
> 6) Repeat steps 3 - 5
> Eventually you get this error
> [WARNING] [talledLocalContainer] SEVERE: Error processing request
> [WARNING] [talledLocalContainer] java.lang.OutOfMemoryError: PermGen space
> [WARNING] [talledLocalContainer] 	at java.lang.ClassLoader.defineClass1(Native Method)
> [WARNING] [talledLocalContainer] 	at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
> [WARNING] [talledLocalContainer] 	at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
> [WARNING] [talledLocalContainer] 	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
> [WARNING] [talledLocalContainer] 	at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
> [WARNING] [talledLocalContainer] 	at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
> [WARNING] [talledLocalContainer] 	at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
> [WARNING] [talledLocalContainer] 	at java.security.AccessController.doPrivileged(Native Method)
> [WARNING] [talledLocalContainer] 	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
> [WARNING] [talledLocalContainer] 	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> [WARNING] [talledLocalContainer] 	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
> [WARNING] [talledLocalContainer] 	at org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java:234)
> [WARNING] [talledLocalContainer] 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
> [WARNING] [talledLocalContainer] 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> [WARNING] [talledLocalContainer] 	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:615)
> [WARNING] [talledLocalContainer] 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> [WARNING] [talledLocalContainer] 	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
> [WARNING] [talledLocalContainer] 	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
> [WARNING] [talledLocalContainer] 	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
> [WARNING] [talledLocalContainer] 	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
> [WARNING] [talledLocalContainer] 	at java.lang.Thread.run(Thread.java:680)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira