Friday 17 August 2018

GC.class_stats command requires -XX:+UnlockDiagnosticVMOptions

This error comes, when you try to get the class meta data statistics using jcmd command.

How to resolve the problem?
Launch application using '-XX:+UnlockDiagnosticVMOptions' argument.

Example
java -classpath . -XX:+UnlockDiagnosticVMOptions HelloWorld



Previous                                                 Next                                                 Home

No comments:

Post a Comment