|
|
|
1000 Java Tips ebook
|
|
 

Free "1000 Java Tips" eBook is here! It is huge collection of big and small Java
programming articles and tips. Please take your copy here.
Take your copy of free "Java Technology Screensaver"!. |
|
Question: Is there any way of getting the memory requirements of objects at run-
|
JavaFAQ Home » Daily Tips

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
Printer Friendly Page
Send to a Friend
..
Search here again if you need more info!
|
|
|