Misleading output from jcmd JFR.check

Martin Skarsaune martin at skarsaune.net
Wed Sep 6 06:38:26 UTC 2017


Hi

If I run *JFR.check* in build 9+181 , the response indicates that I can
invoke *VM.unlock_commercial_features*.
This command is not available in the given VM.

The output should not refer to this command i VM where it is not available.

Cheers

Martin Skarsaune


Example:

Martins-MacBook-Pro-2:Downloads marska$ java -version

java version "9"

Java(TM) SE Runtime Environment (build 9+181)

Java HotSpot(TM) 64-Bit Server VM (build 9+181, mixed mode)

Martins-MacBook-Pro-2:Downloads marska$
/Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home/bin/jcmd 11700
JFR.check

11700:

Java Flight Recorder not enabled.


Use VM.unlock_commercial_features to enable.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/serviceability-dev/attachments/20170906/292879c1/attachment.html>


More information about the serviceability-dev mailing list