Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-595

With redeploy web app created a ThreadLocal but failed to remove it when the web application was stopped

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.11.0
    • Affects Version/s: 2.8.0
    • Component/s: Connection Management
    • Environment:
      windows/linux (Ubuntu 12.04),sun java 1.7, tomcat 7

      With a redeploy of the webapplication to tomcat: This error message appears:
      SEVERE: The web application [/MongoReporter] created a ThreadLocal with key of type [com.mongodb.DBTCPConnector$1] (value [com.mongodb.DBTCPConnector$1@6c747b55]) and a value of type [com.mongodb.DBTCPConnector.MyPort] (value [com.mongodb.DBTCPConnector$MyPort@534d4113]) 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.

      uploaded simple webapp to demonstrate

        1. MongoReporter.zip
          5 kB
        2. MongoReporter.v2.zip
          5 kB

            Assignee:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Reporter:
            grtvrt Gert Vaartjes
            Votes:
            8 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:
              Resolved: