JProbe Memory

M

minimalism

Does anyone know exactly how JProbe measures memory and why there's a
huge difference between the memory consumption reported by JProbe and
the JVM? JProbe reports 12+ mb, while Runtime.getRuntime() methods
report about 2.5 mb.

Thanks for your help.
 
R

Roedy Green

Does anyone know exactly how JProbe measures memory and why there's a
huge difference between the memory consumption reported by JProbe and
the JVM? JProbe reports 12+ mb, while Runtime.getRuntime() methods
report about 2.5 mb.
I will make a guess that JProbe is able to detect the amount of memory
used by the C++ code in the JVM, and the various native objects. The
amount reported by the JVM would include only Java objects, and
perhaps java class files, and perhaps the hotspotted machine code.
 

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

Forum statistics

Threads
474,431
Messages
2,571,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top