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

Reduce log verbosity of the JFR thread sampler

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 11, 14, 15
    • Fix Version/s: 15
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
      jfr
    • Resolved In Build:
      b10
    • CPU:
      x86

      Description

      Starting JFR with -Xlog:jfr=info reveals the following log output:

      [0.448s][info][jfr] Flight Recorder initialized
      [0.449s][info][jfr] Repository base directory: C:\Users\egahlin\AppData\Local\Temp
      [0.504s][info][jfr] Creating thread sampler for java:20 ms, native 0 ms
      [0.505s][info][jfr] Enrolling thread sampler
      [0.506s][info][jfr] Enrolling thread sampler
      [0.507s][info][jfr] Updated thread sampler for java: 20 ms, native 0 ms
      [0.508s][info][jfr] Updated thread sampler for java: 20 ms, native 0 ms
      [0.509s][info][jfr] Updated thread sampler for java: 20 ms, native 20 ms
      [0.523s][info][jfr] Started recording "1" (1)
      [0.614s][info][jfr] Updated thread sampler for java: 0 ms, native 20 ms
      [0.614s][info][jfr] Disenrolling thread sampler
      [0.617s][info][jfr] Stopped recording "1" (1). Reason "Shutdown".
      [0.622s][info][jfr] Removed repository C:\Users\egahlin\AppData\Local\Temp\2020_02_06_20_36_29_8184

      The thread sampler is an implementation detail and should have log level debug or trace.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: