Ed Burnette wrote:
This says it's using 33M out of an available 48M of memory. The code (in HeapStatus.java) just uses the Runtime.totalMemory() and Runtime.freeMemory() methods to get these numbers.

These methods report the total/free space on the JVM internal heap - which is what gets used up when you new() an object (or load classes). The JVM itself and memory allocated by the native parts (file handles, sockets and other OS resources) are not reported by those methods, either.

All Java programs share a similar discrepancy.

C


-- ------------------------------------------------------------------------- Chris Merrill | http://www.webperformanceinc.com Web Performance Inc.

Website Load Testing and Stress Testing Software
-------------------------------------------------------------------------

_______________________________________________
Juglist mailing list
[email protected]
http://trijug.org/mailman/listinfo/juglist_trijug.org

Reply via email to