JMX Code to print peak Native Memory Usage and Code Cache

This code can be used to print the native usage of a JVM and also the code cache usage. To get the details we need to enable JMX on the server by following the steps below. We need to enable -XX:NativeMemoryTracking=detail flag as well. import java.io.IOException; import java.net.MalformedURLException; import javax.management.openmbean.*; … Continue reading JMX Code to print peak Native Memory Usage and Code Cache