memory stats

N

nash_rack1

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.
 
S

Scott Ellsworth

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]?
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,239
Members
46,827
Latest member
DMUK_Beginner

Latest Threads

Top