I don’t know of any. Also, it appears that there are no uses of any of the 
HotspotRuntimeMBean methods in the JDK, so it could actually be removed! If you 
want to add its methods to a public interface, I’d create 
com.sun.management.RuntimeMXBean by analogy to c.s.m.ThreadMXBean and use the 
supported/enabled approach of *ThreadAllocatedBytes*. Needs a CSR, of course.

Paul

From: serviceability-dev <serviceability-dev-boun...@openjdk.java.net> on 
behalf of Tony Printezis <tprinte...@twitter.com>
Date: Friday, October 11, 2019 at 1:45 PM
To: "serviceability-dev@openjdk.java.net" <serviceability-dev@openjdk.java.net>
Subject: Safepoint Bean?

Hi there,

Is there a standard MBean (similar to GarbageCollectorMXBean), or other 
mechanism, that can be used to get safepoint statistics from Java (count, time, 
etc.)? I know it’s possible to get that info from 
sun.management.HotspotRuntime.java, but I assume this is not a publicly 
accessible API any more? Is there a standard alternative?

Thanks,

Tony


—————
Tony Printezis | @TonyPrintezis | 
tprinte...@twitter.com<mailto:tprinte...@twitter.com>

Reply via email to