safepoint accumulating time counter

charlie hunt charlie.hunt at oracle.com
Mon Feb 29 20:57:50 UTC 2016


Hi Carsten,

Thanks for sharing!  I’ve kinda lost track of what all is exposed via MBeans … glad to see Safepoint info is indeed exposed.

charlie

> On Feb 29, 2016, at 12:02 PM, Carsten Varming <varming at gmail.com> wrote:
> 
> Dear Brian,
> 
> I believe the HotspotRuntimeMBean[1] exports total time spent in safepoints.
> 
> [1]: http://hg.openjdk.java.net/jdk8u/jdk8u-dev/jdk/file/5972ad24ef27/src/share/classes/sun/management/HotspotRuntimeMBean.java <http://hg.openjdk.java.net/jdk8u/jdk8u-dev/jdk/file/5972ad24ef27/src/share/classes/sun/management/HotspotRuntimeMBean.java>
> 
> Carsten
> 
> On Mon, Feb 29, 2016 at 12:35 PM, charlie hunt <charlie.hunt at oracle.com <mailto:charlie.hunt at oracle.com>> wrote:
> Hi Brian,
> 
> Nice to hear from you!
> 
> Look at +PrintSafepointStatistics. I think you will figure it out from there.
> 
> AFAIR, info is not exposed in an MBean.
> 
> hths,
> 
> Charlie
> 
> > On Feb 29, 2016, at 10:32 AM, Brian Toal <brian.toal at gmail.com <mailto:brian.toal at gmail.com>> wrote:
> >
> > Hi, does the JVM expose total time spent in safepoints via an MBean or
> > another mechanism other than PrintGCApplicationStoppedTime?  Specifically,
> > I'm curious whether this feature exists in Java 8.
> 



More information about the hotspot-dev mailing list