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

-XX:StartFlightRecording:settings= doesn't work properly

    Details

    • Subcomponent:
      jfr
    • Resolved In Build:
      b25

      Backports

        Description

        If you specify a settings file wth less than 4 characters, the JVM prints the following error message at start up:

        begin 0, end -2, length 2
        Error occurred during initialization of VM
        Failure when starting JFR on_vm_start

        This is not very helpful. Note, JFR accepts names without file extension, for example "default" and "profile". it should also be possible to start without a file as this is a convenient way to turn off the default events.Perhaps

        $ java -XX:StartFlightRecording:settings=none


          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved: