How to find the heap memory usage of your JVM instance?

Java JMX API has very simple API to find out the memory usage of a JVM instance. In the below given example we will find the memory usage of a JVM instance.

Console output

Leave a comment

Your email address will not be published. Required fields are marked *