Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-8972

Classloader leak reported in Apache tomcat

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.15.2
    • 2.16.0
    • camel-core
    • None
    • Unknown

    Description

      Wonder if we can try to fix this.

      When deploying a Camel WAR in Tomcat and stopping Tomcat it repors

      15-Jul-2015 08:44:42.598 SEVERE [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoader.checkThreadLocalMapForLeaks The web application [/myweb] created a ThreadLocal with key of type [com.sun.xml.bind.v2.ClassFactory$1] (value [com.sun.xml.bind.v2.ClassFactory$1@2bd27391]) and a value of type [java.util.WeakHashMap] (value [{class org.apache.camel.spring.CamelContextFactoryBean=java.lang.ref.WeakReference@5a14b11, class javax.xml.bind.annotation.adapters.CollapsedStringAdapter=java.lang.ref.WeakReference@20474bfa, class org.apache.camel.model.SetBodyDefinition=java.lang.ref.WeakReference@28cd1aa4, class org.apache.camel.model.language.SimpleExpression=java.lang.ref.WeakReference@319019e9, class org.apache.camel.model.WhenDefinition=java.lang.ref.WeakReference@6b95296a, class org.apache.camel.model.RouteDefinition=java.lang.ref.WeakReference@dd22554, class org.apache.camel.model.ToDefinition=java.lang.ref.WeakReference@5f90b4e2, class org.apache.camel.model.FromDefinition=java.lang.ref.WeakReference@15539272, class org.apache.camel.model.ChoiceDefinition=java.lang.ref.WeakReference@21b3854e, class org.apache.camel.model.OtherwiseDefinition=java.lang.ref.WeakReference@10f4d52b, class org.apache.camel.model.language.HeaderExpression=java.lang.ref.WeakReference@39d702bf, class org.apache.camel.model.TransformDefinition=java.lang.ref.WeakReference@52f56743, class org.apache.camel.model.language.ConstantExpression=java.lang.ref.WeakReference@6d4e8a41}]) 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.
      

      Attachments

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              davsclaus Claus Ibsen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: