Uploaded image for project: 'ActiveMQ'
  1. ActiveMQ
  2. AMQ-4008

Tomcat WARN on shutdown about ThreadLocal not cleared from log4j

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.6.0
    • Fix Version/s: 5.7.0
    • Component/s: Broker
    • Labels:
      None

      Description

      SEVERE: The web application [/camel-example-activemq-tomcat] created a ThreadLocal with key of type [org.apache.log4j.helpers.ThreadLocalMap] (value [org.apache.log4j.helpers.ThreadLocalMap@1eb0cd0]) and a value of type [java.util.Hashtable] (value [

      {activemq.broker=myBroker}

      ]) 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.

      I got a bit annoyed by this when I was working on a new example for Apache Camel with an embedded AMQ broker. So I am digging into fixing this. Its in the start() method.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                davsclaus Claus Ibsen
                Reporter:
                davsclaus Claus Ibsen
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: