Uploaded image for project: 'Rave'
  1. Rave
  2. RAVE-750

Memory Leak during redeploy

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.15
    • None
    • None
    • None

    Description

      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)

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              geerzo Chris Geer
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: