runtime JVM options

Y Srinivas Ramakrishna Y.S.Ramakrishna at Sun.COM
Thu Dec 11 11:20:16 PST 2008

% ${JDK}/bin/jinfo -flags <pid>

It should give you a list of the specified C.L. options like so:

-XX:+UseConcMarkSweepGC -XX:+PrintGCTimeStamps -XX:+PrintGCDetails -Xmx2g

If you want the value of a specific flag that you did not specify on
the command line, you can ask:

% ${JDK}/bin/jinfo -flag -flag CMSMarkStackSizeMax <pid>

And you might get back for example:


I do not know of a universal jinfo query which will dump all
extant flags though.

-- ramki

----- Original Message -----
From: Victor Cheung <VictorC at>
Date: Thursday, December 11, 2008 8:47 am
Subject: runtime JVM options
To: "hotspot-gc-use at" <hotspot-gc-use at>

> Hihi all,
> I cannot seem to find the answer to this.  How can we get a list of 
> *all* the options and values that a running JVM is using?
> victor
> _______________________________________________
> hotspot-gc-use mailing list
> hotspot-gc-use at
hotspot-gc-use mailing list
hotspot-gc-use at

More information about the hotspot-gc-dev mailing list