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

dumppath in -XX:FlightRecorderOptions does not affect

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 11, 16, 17, 18
    • Fix Version/s: 18
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
      jfr
    • Resolved In Build:
      b20

      Description

      We set `dumppath` in `-XX:FlightRecorderOptions` or `JFR.configure dumppath` jcmd when we want to set emergency dump path. However they do not afffect.

      ### -XX:FlightRecorderOptions

      ```
      $ java -XX:FlightRecorderOptions=dumppath=`pwd` -XX:StartFlightRecording -Xlog:exceptions=info --version
      [0.032s][info][exceptions] Exception <a 'java/lang/IllegalArgumentException'{0x00000007470163b8}: Unknown argument 'dumppath' in diagnostic command.> (0x00000007470163b8)
      thrown [open/src/hotspot/share/services/diagnosticFramework.cpp, line 215]
      for thread 0x00007f4f700236a0
      [0.033s][error][arguments ] Unknown argument 'dumppath' in diagnostic command.
      Error occurred during initialization of VM
      Failure when starting JFR on_create_vm_2
      ```

      ### jcmd

      `jcmd` shows the configuration change was succeeded, but it would not affect.

      ```
      $ jcmd 1046 JFR.configure dumppath=/tmp
      1046:
      Dump path: /tmp
      ```

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ysuenaga Yasumasa Suenaga
              Reporter:
              ysuenaga Yasumasa Suenaga
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: