how to see the Java VM size?

i want to see in my tomcat server how much memory size allotted & utilized.. (i have purchased the tomcat serverfrom someone..)

i just want to check the heap size allotted to my application..

can anyone tell me how to do it ? ( command line or java programs)

Message was edited by:

loguKK

[339 byte] By [loguKKa] at [2007-11-27 8:14:22]
# 1

> i want to see in my tomcat server how much memory

> size allotted & utilized.. (i have purchased the

> tomcat serverfrom someone..)

*lol* You were ripped off, man. Tomcat's free.

> i just want to check the heap size allotted to my

> application..

use the verbose:gc flag.

CeciNEstPasUnProgrammeura at 2007-7-12 19:58:55 > top of Java-index,Java Essentials,New To Java...
# 2
sorry..i purchased jsp web hosting ...space...with tomcat support.. could you tell the exact command..
loguKKa at 2007-7-12 19:58:55 > top of Java-index,Java Essentials,New To Java...
# 3
Hi,You can find more info regarding memory, cpu usage using HPROF Heap Profiler(which is shipped with jdk1.5)or use the fowllowing commands-XX:+PrintGC-XX:+PrintGCDetails
Ram_Rengasamya at 2007-7-12 19:58:55 > top of Java-index,Java Essentials,New To Java...
# 4
I somewhat doubt they let you access their server.Oh, you can get some information from Runtime class, too.
CeciNEstPasUnProgrammeura at 2007-7-12 19:58:55 > top of Java-index,Java Essentials,New To Java...