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

Error messages are confusing when options conflict in -XX:StartFlightRecording

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 21
    • 20
    • hotspot
    • None
    • jfr
    • b10

    Description

      -XX:StartFlightRecording has a very unfriendly error message when the same option is specified multiple times.

      If we run java application with -XX:StartFlightRecording=name=abc,name=abc2 option, currently the error message is

      [0.564s][error][jfr,startup] Duplicates in diagnostic command arguments
      Error occurred during initialization of VM
      Failure when starting JFR on_create_vm_3

      Since the production runs with many JVM arguments, this message makes it difficult for the user to know what to change.

      I would recommend the following changes to make the issue more clear to the user

      filename is conflicted in starting FlightRecording
      disk and filename are conflicted in starting FlightRecording
      disk, filename and name are conflicted in starting FlightRecording

      Attachments

        Issue Links

          Activity

            People

              cito Chihiro Ito
              cito Chihiro Ito
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: