Hi Tony,

I think delivering this information, available via logging, could be useful. Be 
happy to assist where I can.

Kind regards,
Kirk


> On Oct 14, 2019, at 11:23 AM, Tony Printezis <[email protected]> wrote:
> 
> Hi Mandy,
> 
> Thanks for the response! I hope you’re well!
> 
> We’d like to be able to get safepoint stats from within the JVM so we can 
> post them to our observability system. Would creating a Bean (a la 
> GarbageCollectorMXBean) that exposes this info make sense? I’d be happy to 
> work on it if there’s interest. Would you recommend an alternative method?
> 
> Tony
> 
> 
> —————
> Tony Printezis | @TonyPrintezis | [email protected] 
> <mailto:[email protected]>
> 
> 
> On October 14, 2019 at 12:49:57 PM, Mandy Chung ([email protected] 
> <mailto:[email protected]>) wrote:
> 
>> jdk.internal.jvmstat is JDK internal unsupported API.  jstat and jcmd 
>> monitors the JVM statistics that you can use but I think they don't show the 
>> safepoint counters by default.
>> 
>> Mandy
>> 
>> On 10/14/19 8:25 AM, Tony Printezis 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 | [email protected] 
>>> <mailto:[email protected]>
>>> 
>>> 
>>> On October 11, 2019 at 11:10:18 PM, Yasumasa Suenaga 
>>> ([email protected] <mailto:[email protected]>) 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 <[email protected] 
>>>> > <mailto:[email protected]>> on behalf of Tony 
>>>> > Printezis <[email protected] <mailto:[email protected]>>
>>>> > *Date: *Friday, October 11, 2019 at 1:45 PM
>>>> > *To: *"[email protected] 
>>>> > <mailto:[email protected]>" 
>>>> > <[email protected] 
>>>> > <mailto:[email protected]>>
>>>> > *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 | [email protected] 
>>>> > <mailto:[email protected]> <mailto:[email protected] 
>>>> > <mailto:[email protected]>>
>>>> >

Reply via email to