JDK-8216064 : -XX:StartFlightRecording:settings= doesn't work properly
  • Type: Bug
  • Component: hotspot
  • Sub-Component: jfr
  • Affected Version: 11,12,13
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2019-01-03
  • Updated: 2020-04-27
  • Resolved: 2019-06-09
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 13 JDK 14 Other
11.0.6Fixed 13 b25Fixed 14Fixed openjdk8u262Fixed
Related Reports
Relates :  
Relates :  
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



Comments
Replacing jdk8u-fix-request with link to JDK-8239140
17-02-2020

RFC: https://mail.openjdk.java.net/pipermail/jdk8u-dev/2020-January/011063.html
30-01-2020

Fix Request This patch applies cleanly to 11u.
20-09-2019