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

PermGen memory leak. A deamon thread "CursorCleanerThread" doesn't stopped when undeploy a web application.

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.11.1
    • Component/s: Monitoring
    • Labels:
      None
    • Environment:
      Windows 7 with sp1
      Tomcat 7

      a thread named "MongoCleanerXXX" still at sleep state when a web application is undeployed.
      This cause a PermGen memory leak.

      The close method in Mongo try to interrupt the cleaner thread. But, that doesn't work.
      There's a try-catch block in the run() of CursorCleanerThread, it catch any Throwable, So, the interrupt may not let the thread die.

            Assignee:
            Unassigned Unassigned
            Reporter:
            wpc009 wpc
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: