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.
|