Misleading output from jcmd JFR.check

David Holmes david.holmes at oracle.com
Wed Sep 6 06:52:52 UTC 2017


Hi Martin,

On 6/09/2017 4:38 PM, Martin Skarsaune wrote:
> 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:

What JVM is process 11700? What does "jcmd 11700 help" show?

Thanks,
David
-----

> Java Flight Recorder not enabled.
> 
> 
> Use VM.unlock_commercial_features to enable.
> 
> 


More information about the serviceability-dev mailing list