Tracking CMS "stop the world" times from JMX or in-vm

Mandy Chung Mandy.Chung at Sun.COM
Fri Feb 20 20:01:54 UTC 2009

The "stop the world" time is maintained in the jvmstat counters but is 
not exposed in the public API.  It's in 
src/share/vm/services/runtimeService.cpp.  There is a RFE 4975677 to 
implement the GC mbeans for CMS to expose CMS-specific information. 


Bob Cotton wrote:
> 5u17 Linux
> We are working out the details of moving to the CMS GC (and stopping 
> RMI from doing a full gc)
> In the past we have used the GC mbean to monitor the amount of time 
> spent doing full GCs. Now, not so much.
> Is is possible to monitor the total "stop the world" time from jmx, or 
> internally from the VM? I'm aware of the options 
> XX:+PrintGCApplicationStoppedTime 
> -XX:+PrintGCApplicationConcurrentTime to log that info, but it would 
> be great to have that info available elsewhere.
> Thanks
>  -Bob

More information about the hotspot-gc-dev mailing list