Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Misleading jcmd output in early access JDK9 ?

714b9896-fe27-42bc-a9f8-80066fc9a555Sep 6 2017 — edited Sep 6 2017

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.

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.

Comments
Post Details
Added on Sep 6 2017
1 comment
474 views