Hi,
Is there a way to determine from within a Java app what objects are in
memory and how much memory they are using?
What kind of memory statistics are available in the JVM besides
runtime.freeMemory(), runtime.totalMemory(), and runtime.maxMemory()?
Thanks,
Dave
Chris Smith - 11 Jun 2005 00:56 GMT
> Is there a way to determine from within a Java app what objects are in
> memory and how much memory they are using?
Yes. There's an entire API devoted to gathering this kind of
information, and it's called the JVMTI (before Java 1.5, it's the JVMDI
and JVMPI, but they were united in 1.5). These do require that the VM
be run in an appropriate mode to give out this information; which is
good, since we wouldn't want the VM to gather it all of the time.

Signature
www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.
Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation