Print chosen JVM options

Hi,is there a way to dump (default) options chosen by the JVM? For example, I would like to see the chosen value of the thread stack size (which may be set using -Xss).Thanks, Daniel
[203 byte] By [d_ra] at [2007-11-26 20:05:02]
# 1
Use jconsole. http://java.sun.com/j2se/1.5.0/docs/guide/management/jconsole.html#VM
swamyva at 2007-7-9 23:05:49 > top of Java-index,Core,Monitoring & Management...
# 2
Hm, I do not find the information I'm interested in. I'm interested in the values that the JVM has chosen for the options I did not specify on the command line. Is this information available in jconsole?/ Daniel
d_ra at 2007-7-9 23:05:49 > top of Java-index,Core,Monitoring & Management...
# 3

JDK 6 jinfo and com.sun.management.HotSpotDiagnosticMXBean both allow you to get the value of a VM flag. -Xss is translated in a VM flag named ThreadStackSize.

Run jinfo -flag ThreadStackSize <pid>

or run jconsole <pid>

Go to MBeans tab -> select com.sun.management.HotSpotDiagnosticMXBean

then click on Operations node of HotSpotDiagnosticMXBean

then enter the name of the VM flag in the getVMOption operation which will return you the value of the flag.

Check out more details from the Java SE 6 monitoring and management article:

http://java.sun.com/developer/technicalArticles/J2SE/monitoring/

Hope this helps.

Mandy

mandy_kochunga at 2007-7-9 23:05:49 > top of Java-index,Core,Monitoring & Management...
# 4
it is not necessary!/sam
kuangweixionga at 2007-7-9 23:05:49 > top of Java-index,Core,Monitoring & Management...