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

JFR: Create timer task lazily

    XMLWordPrintable

Details

    • jfr
    • b14

    Description

      JFR allows recordings to be started with a delay in the following manner:

      1. java -XX:StartFlightRecording:delay=<timespan>
      2. jcmd JFR.start delay=<timespan>
      3. Recording::scheduleStart(Duration);

      This works fine, but most of the time recordings are not started with a delay, which means two unneessary threads are created when JFR is initialized, adding footprint and slowing down both startup and shudown.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: