How to get max memory, free memory and total memory in Java

Getting free memory, total memory and max memory on JVM is using by Runtime class in Java. and many java programmer is interested to know whether they have any relationship with JVM argument -Xms and -Xmx which is used to specify starting heap size and maximum heap size of JVM. I have touched this on 10 Points on Java heap and how to set heap size in ANT and Maven but here we will see some way to find out starting and maximum heap size from Java program.
Read more »

0 Response to "How to get max memory, free memory and total memory in Java"

Posting Komentar