Release Note: Reduced frequency of JFR events jdk.ThreadDump and jdk.ClassLoaderStatistics

XMLWordPrintable

    • Type: Sub-task
    • Resolution: Delivered
    • Priority: P4
    • 17, 21, 25, 26
    • Affects Version/s: 17, 21, 25, 26
    • Component/s: hotspot
    • None
    • jfr

      In applications with many threads (typically more than 1,000) and deep Java stacks (typically more than 300 frames), the `jdk.ThreadDump` event can become large enough to trigger a recording file rotation by itself. This can cause other events to be removed earlier than expected by the retention policy. A similar issue occurs for the `jdk.ClassLoaderStatistics` event in applications that use several hundred thousand class loaders.

      To avoid back-to-back rotations in the default configuration (`default.jfc`), the `jdk.ThreadDump` and `jdk.ClassLoaderStatistics` events are now written only when a recording starts and at the end of a file rotation. They are no longer written at the beginning of a new file created by rotation.

            Assignee:
            Erik Gahlin
            Reporter:
            Erik Gahlin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: