sabaTEL.net

Java, MySQL, Avaya

Check Java Heap Size and Free Memory

A very small Java program to query the Java Heap Size value and the current Free Memory.

To display the Memory Used we could simply do Heap Size – Free Mem.

Advertisements

May 31, 2012 Posted by | Java | Leave a comment