JRockit (JVM) from weblogic has a great feature that helps in tracking
memory leaks. You can enable printing of memory stats like (most added
objects since last GC, top objects occupying memory, etc). These stats
get printed at the time of garbage collection. They can also be printed
by sending a signal to JVM. I wanted to know if any new (1.5 or 1.6)
JVMs from Sun also has any feature like this? I know about third party
tools like jprobe etc but it would be great to have the JVM provide
some basic information about objects in memory.
Scott Ellsworth - 05 May 2006 21:30 GMT
> I wanted to know if any new (1.5 or 1.6)
> JVMs from Sun also has [the ability to figure out object counts and sizes]?
> [I]t would be great to have the JVM provide
> some basic information about objects in memory.
Use the same tools those third party ones do - JVMTI and the like will
give you all the information you need. You might also be able to do
this via JMX, but I have not dug deeply into that.
Scott

Signature
Scott Ellsworth
scott@alodar.nospam.com
Java and database consulting for the life sciences