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

JFR.stop misses the written info when the filename is only specified by JFR.start

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • P4
    • Resolution: Fixed
    • None
    • 18
    • hotspot
    • None
    • jfr
    • b04

    Description

      ```
      $jcmd 87802 JFR.start name=test
      87802:
      Started recording 2. No limit specified, using maxsize=250MB as default.

      Use jcmd 87802 JFR.dump name=test filename=FILEPATH to copy recording data to file.

      $jcmd 87802 JFR.stop name=test filename=1.jfr
      87802:
      Stopped recording "test", 200.9 kB written to:

      /home/denghui.ddh/my-jdk/1.jfr

      $jcmd 87802 JFR.start name=test filename=2.jfr
      87802:
      Started recording 1. No limit specified, using maxsize=250MB as default.

      Use jcmd 87802 JFR.dump name=test to copy recording data to file.

      $jcmd 87802 JFR.stop name=test
      87802:
      Stopped recording "test".
      ```

      The second 'JFR.stop' didn't print written info, but actually, 2.jfr was generated.

      Attachments

        Issue Links

          Activity

            People

              ddong Denghui Dong
              ddong Denghui Dong
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: