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

The result of jfr view active-settings is invalid if jfr file is created by JDK 11 or JDK 8

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • tbd
    • 21
    • hotspot
    • None
    • jfr

      If the jfr file is created by JDK 8 or JDK 11, and use jfr view to show the active-settings view, the result is invalid, missing many settings.

      jfr view active-settings j11.jfr

      Active Settings

      Event Type Enabled Threshold Stack Trace Period Cutoff Throttle
      ------------- ---------- ------------ -------------- --------- --------- -----------
      File Force true 20 ms true


      ---------------------------------------------------------
      jfr summary j11.jfr
      ...
       Event Type Count Size (bytes)
      =============================================================
      ...
       jdk.ActiveSetting 292 9528
      ...

      The reason is the endTime of jdk.ActiveSetting on JDK 8 or JDK 11 increases naturally, the time between two consecutive events is approximately a few microseconds, but the query statement of active-settings view used LAST_BATCH(), It assumes that the end time of events are the same. For JDK 17 and above, this assumption is correct, but not for JDK 8 and JDK 11.

        1. j8.jfr
          592 kB
        2. j11.jfr
          287 kB

            lyang Long Yang
            lyang Long Yang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: