Checking the heap size of a jvm at run time

I

iris

Hi,

After using the java run options -ms64m -mx64m that sets the heap size
of a run to the number specified, i would like to check what the
actual value of the heap size is at run time.
Does anyone know how to verify that?

Thanks!
Iris.
 
R

Robert Olofsson

: After using the java run options -ms64m -mx64m that sets the heap size
: of a run to the number specified, i would like to check what the
: actual value of the heap size is at run time.
: Does anyone know how to verify that?

Either from java:
Runtime.getMaxMemory, Runtime.freeMemory or Runtime.totalMemory
or use a profiler like jmp (http://www.khelekore.org/jmp/) that
can show the current heap size (and lots of other things).

/robo
 

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,755
Messages
2,569,534
Members
45,007
Latest member
obedient dusk

Latest Threads

Top