Content received from: http://JavaFAQ.nu/java-article53.html
Question: Is there any way of getting the memory requirements of objects at run- Friday, February 07, 2003 (01:00:00)
Posted by jalex
Question: Is there any way of getting the
memory requirements of objects at run-time?
Answer: JDK 1.1 provides a -prof option
which among other things prints the bytes per instance and total instances for
every class loaded in the VM at termination.
Java 2 provides a heap profiler which gives a detailed map of heap usage at
termination.
http://developer.java.sun.com/developer/onlineTraining/Programming/JDCBook/perf3.html
***************************************
Our older tips: March 22, 2001 - Oktober 21, 2002
read here.
All published and not published on site tips you can find
here
|