Safepoint Bean?

Kirk Pepperdine kirk.pepperdine at gmail.com
Wed Oct 16 15:13:49 UTC 2019


Hi Tony,

A side effect of modularization is that it’s breaking more diagnostic tooling. Oh well….

Kind regards,
Kirk


> On Oct 14, 2019, at 8:25 AM, Tony Printezis <tprintezis at twitter.com> wrote:
> 
> Is jvmstat a public / supported API? The jdk.internal.jvmstat module doesn’t seem to be exporting anything publicly (and it also has “internal” in its name).
> 
> Tony
> 
> 
> —————
> Tony Printezis | @TonyPrintezis | tprintezis at twitter.com <mailto:tprintezis at twitter.com>
> 
> 
> On October 11, 2019 at 11:10:18 PM, Yasumasa Suenaga (suenaga at oss.nttdata.com <mailto:suenaga at oss.nttdata.com>) wrote:
> 
>> Hi, 
>> 
>> AFAIK the API for them does not provided, but we can use reader class for hsperfdata 
>> in jdk.internal.jvmstat module. 
>> Examples are available on my GitHub: 
>> 
>> https://github.com/YaSuenag/perfreader <https://github.com/YaSuenag/perfreader> 
>> 
>> You can get safepoint statistics via sun.rt.safepoint* in hsperfdata. 
>> 
>> 
>> Yasumasa 
>> 
>> 
>> On 2019/10/12 10:30, Hohensee, Paul wrote: 
>> > 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-bounces at openjdk.java.net <mailto:serviceability-dev-bounces at openjdk.java.net>> on behalf of Tony Printezis <tprintezis at twitter.com <mailto:tprintezis at twitter.com>> 
>> > *Date: *Friday, October 11, 2019 at 1:45 PM 
>> > *To: *"serviceability-dev at openjdk.java.net <mailto:serviceability-dev at openjdk.java.net>" <serviceability-dev at openjdk.java.net <mailto:serviceability-dev at 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 | tprintezis at twitter.com <mailto:tprintezis at twitter.com> <mailto:tprintezis at twitter.com <mailto:tprintezis at twitter.com>> 
>> > 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/serviceability-dev/attachments/20191016/9cecb99a/attachment.html>


More information about the serviceability-dev mailing list