Uploaded image for project: 'Pig'
  1. Pig
  2. PIG-4603

Classloader leak in SpillableMemoryManager

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 0.15.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      In the constructor of SpillableMemoryManager, a NotificationListener is added to the MemoryMXBean. This listener is never removed, even if the application is re-deployed.

      This results in the instance SpillableMemoryManager being still reachable after a redeploy. This results in its class being reachable, which results in the classloader being reachable, along with all the classes in it.

      This leads to metaspace OutOfMemoryErrors.

        Attachments

          Activity

            People

            • Assignee:
              rohini Rohini Palaniswamy
              Reporter:
              gvsmirnov Gleb Smirnov
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: