Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8020943

Memory leak when GCNotifier uses create_from_platform_dependent_str()

XMLWordPrintable

    • 7
    • b45
    • Not verified

        In jdk7 onwards, running an application and attaching jconsole activates GC Notifications in the GC MBean.

        There is some overhead accounted for by ArrayNotificationBuffer, but this should stabilise. But there remains a JNI Handle leak that can be shown with -XX:+TraceJNIHandleAllocation.

        "Unreferenced" java.lang.String objects accumulate in the heap, they are the Strings from the GC name/cause, and cannot be collected.

              kevinw Kevin Walls
              kevinw Kevin Walls
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: