Thursday 16 August 2018

Java: Native memory tracking is not enabled

This error occurs, when you try to access 'VM.native_memory detail' (or) ‘when you try to access 'VM.native_memory summary'.

To resolve this error, run the application using the option -XX:NativeMemoryTracking, either of below commands.

java -XX:NativeMemoryTracking=detail -classpath . HelloWorld
java -XX:NativeMemoryTracking=summary -classpath . HelloWorld

‘HelloWorld’ is the java application name.


Previous                                                 Next                                                 Home

No comments:

Post a Comment