The following code retrieves Free Memory, Total Memory, Max Memory allocated to JVM Runtime runtime = Runtime.getRuntime(); System.out.println(“max memory: ” + runtime.maxMemory() / (1024.0*1024.0)); System.out.println(“allocated memory: ” + runtime.totalMemory() / 1024); System.out.println(“free memory: ” + runtime.freeMemory() / 1024); Bookmark on DeliciousDigg this post Reco Read More

Tags: