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

Memory leak when GCNotifier uses create_from_platform_dependent_str()

    Details

    • Subcomponent:
    • Introduced In Version:
      7
    • Resolved In Build:
      b45
    • Verification:
      Not verified

      Backports

        Description

        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.

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved: