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

Inconsistency settings between JFR.configure and -XX:FlightRecorderOptions

XMLWordPrintable

    • jfr
    • generic
    • generic

      ADDITIONAL SYSTEM INFORMATION :
      macOS 11.6

      java -version
      openjdk version "17" 2021-09-14
      OpenJDK Runtime Environment Homebrew (build 17+0)
      OpenJDK 64-Bit Server VM Homebrew (build 17+0, mixed mode, sharing)

      A DESCRIPTION OF THE PROBLEM :
      JFR.configure accepts `repositorypath` as stated in the javadoc: https://docs.oracle.com/en/java/javase/17/docs/specs/man/jcmd.html

      However, -XX:FlightRecorderOptions accepts only `repository` as demonstrated here:

      java -XX:FlightRecorderOptions:repositorypath=jfr-logs -jar my.jar
      [0.030s][error][arguments] Unknown argument 'repositorypath' in diagnostic command.
      Error occurred during initialization of VM
      Failure when starting JFR on_create_vm_2

      java -XX:FlightRecorderOptions:repository=jfr-logs -jar my.jar
      [0.508s][info][jfr,startup] Started recording 1. No limit specified, using maxsize=250MB as default.
      [0.508s][info][jfr,startup]
      [0.508s][info][jfr,startup] Use jcmd 71569 JFR.dump name=1 to copy recording data to file.



            sswsharm swati sharma (Inactive)
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: