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

JFR.start and -XX:StartFlightRecording can use a directory as filename

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: New
    • Priority: P3
    • Resolution: Unresolved
    • Affects Version/s: 16
    • Fix Version/s: None
    • Component/s: tools
    • Labels:
      None

      Description

      If you specify a directory, instead of a file, when using jcmd <pid> JFR.start a filename will be generated automatically,

      Current documentation:

      "Name of the file to which the recording is written when the recording is stopped. If no path is provided, the file is in the directory where the process was started. Examples of filenames:

      - recording.jfr
      - /home/user/recordings/recording.jfr
      - c:\recordings\recording.jfr"
      https://docs.oracle.com/javacomponents/jmc-5-5/jfr-command-reference/diagnostic-command-reference.htm#resourceid-15422-48C8362C

      Should be changed into something similar to this:

      "Name of the file to which the recording is written when the recording is stopped. If no path is provided, the file is in the directory where the process was started.

      If a directory is specified, a filename that contains the process ID, recording ID, and current time stamp (for example,hotspot-pid-47496-id-1-2018_01_25_19_10_41.jfr) is generated.

      Examples of file and directory names:

      - recording.jfr
      - /home/user/recordings/recording.jfr
      - c:\recordings\recording.jfr"
      - /home/user/recordings"
      - c:\recordings"

      Not sure where -XX:StartFlightRecording:filename=<path> is documented, but it should be updated as well.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated: