[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-serviceability-dev
Subject:    Re: Safepoint Bean?
From:       Kirk Pepperdine <kirk.pepperdine () gmail ! com>
Date:       2019-10-16 15:13:49
Message-ID: 9F1FCB7D-D6B4-41C2-A0EA-060A5A022C61 () gmail ! com
[Download RAW message or body]

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@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@twitter.com \
> <mailto:tprintezis@twitter.com> 
> 
> On October 11, 2019 at 11:10:18 PM, Yasumasa Suenaga (suenaga@oss.nttdata.com \
> <mailto:suenaga@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@openjdk.java.net \
> > > <mailto:serviceability-dev-bounces@openjdk.java.net>> on behalf of Tony \
> > >                 Printezis <tprintezis@twitter.com \
> > >                 <mailto:tprintezis@twitter.com>> 
> > > *Date: *Friday, October 11, 2019 at 1:45 PM 
> > > *To: *"serviceability-dev@openjdk.java.net \
> > > <mailto:serviceability-dev@openjdk.java.net>" \
> > > <serviceability-dev@openjdk.java.net \
> > >                 <mailto: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 | tprintezis@twitter.com \
> > > <mailto:tprintezis@twitter.com> <mailto:tprintezis@twitter.com \
> > > <mailto:tprintezis@twitter.com>>  


[Attachment #3 (unknown)]

<html><head><meta http-equiv="Content-Type" content="text/html; \
charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; \
line-break: after-white-space;" class="">Hi Tony,<div class=""><br \
class=""></div><div class="">A side effect of modularization is that it's breaking \
more diagnostic tooling. Oh well….</div><div class=""><br class=""></div><div \
class="">Kind regards,</div><div class="">Kirk</div><div class=""><br \
class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Oct 14, \
2019, at 8:25 AM, Tony Printezis &lt;<a href="mailto:tprintezis@twitter.com" \
class="">tprintezis@twitter.com</a>&gt; wrote:</div><br \
class="Apple-interchange-newline"><div class=""><div id="bloop_customfont" \
style="font-family: Helvetica, Arial; font-size: 13px; font-style: normal; \
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: \
start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: \
0px; -webkit-text-stroke-width: 0px; text-decoration: none; margin: 0px;" class="">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).</div><div \
id="bloop_customfont" style="font-family: Helvetica, Arial; font-size: 13px; \
font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: \
normal; text-align: start; text-indent: 0px; text-transform: none; white-space: \
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; \
margin: 0px;" class=""><br class=""></div><div id="bloop_customfont" \
style="font-family: Helvetica, Arial; font-size: 13px; font-style: normal; \
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: \
start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: \
0px; -webkit-text-stroke-width: 0px; text-decoration: none; margin: 0px;" \
class="">Tony</div><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica, \
Arial; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: \
normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: \
none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; \
text-decoration: none;" class=""><div id="bloop_sign_1571065324294434048" \
class="bloop_sign" style="caret-color: rgb(0, 0, 0); font-family: Helvetica, Arial; \
font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: normal; \
letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; \
white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; \
text-decoration: none;"><div class=""><br class=""></div><div class=""><div \
class="">—————</div><div class="">Tony Printezis | @TonyPrintezis |<span \
class="Apple-converted-space">&nbsp;</span><a href="mailto:tprintezis@twitter.com" \
class="">tprintezis@twitter.com</a></div></div><div class=""><br \
class=""></div></div><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica, \
Arial; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: \
normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: \
none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; \
text-decoration: none;" class=""><p class="airmail_on" style="caret-color: rgb(0, 0, \
0); font-family: Helvetica, Arial; font-size: 13px; font-style: normal; \
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: \
start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: \
0px; -webkit-text-stroke-width: 0px; text-decoration: none;">On October 11, 2019 at \
11:10:18 PM, Yasumasa Suenaga (<a href="mailto:suenaga@oss.nttdata.com" \
class="">suenaga@oss.nttdata.com</a>) wrote:</p><blockquote type="cite" \
class="clean_bq" style="font-family: Helvetica, Arial; font-size: 13px; font-style: \
normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; \
orphans: auto; text-align: start; text-indent: 0px; text-transform: none; \
white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; \
-webkit-text-stroke-width: 0px; text-decoration: none;"><span class=""><div \
class=""><div class=""></div><div class="">Hi,<span \
class="Apple-converted-space">&nbsp;</span><br class=""><br class="">AFAIK the API \
for them does not provided, but we can use reader class for hsperfdata<span \
class="Apple-converted-space">&nbsp;</span><br class="">in jdk.internal.jvmstat \
module.<span class="Apple-converted-space">&nbsp;</span><br class="">Examples are \
available on my GitHub:<span class="Apple-converted-space">&nbsp;</span><br \
class=""><br class=""><a href="https://github.com/YaSuenag/perfreader" \
class="">https://github.com/YaSuenag/perfreader</a><span \
class="Apple-converted-space">&nbsp;</span><br class=""><br class="">You can get \
safepoint statistics via sun.rt.safepoint* in hsperfdata.<span \
class="Apple-converted-space">&nbsp;</span><br class=""><br class=""><br \
class="">Yasumasa<span class="Apple-converted-space">&nbsp;</span><br class=""><br \
class=""><br class="">On 2019/10/12 10:30, Hohensee, Paul wrote:<span \
class="Apple-converted-space">&nbsp;</span><br class="">&gt; 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.<span class="Apple-converted-space">&nbsp;</span><br \
class="">&gt;<span class="Apple-converted-space">&nbsp;</span><span \
class="Apple-converted-space">&nbsp;</span><br class="">&gt; Paul<span \
class="Apple-converted-space">&nbsp;</span><br class="">&gt;<span \
class="Apple-converted-space">&nbsp;</span><span \
class="Apple-converted-space">&nbsp;</span><br class="">&gt; *From: \
*serviceability-dev &lt;<a href="mailto:serviceability-dev-bounces@openjdk.java.net" \
class="">serviceability-dev-bounces@openjdk.java.net</a>&gt; on behalf of Tony \
Printezis &lt;<a href="mailto:tprintezis@twitter.com" \
class="">tprintezis@twitter.com</a>&gt;<span \
class="Apple-converted-space">&nbsp;</span><br class="">&gt; *Date: *Friday, October \
11, 2019 at 1:45 PM<span class="Apple-converted-space">&nbsp;</span><br class="">&gt; \
*To: *"<a href="mailto:serviceability-dev@openjdk.java.net" \
class="">serviceability-dev@openjdk.java.net</a>" &lt;<a \
href="mailto:serviceability-dev@openjdk.java.net" \
class="">serviceability-dev@openjdk.java.net</a>&gt;<span \
class="Apple-converted-space">&nbsp;</span><br class="">&gt; *Subject: *Safepoint \
Bean?<span class="Apple-converted-space">&nbsp;</span><br class="">&gt;<span \
class="Apple-converted-space">&nbsp;</span><span \
class="Apple-converted-space">&nbsp;</span><br class="">&gt; Hi there,<span \
class="Apple-converted-space">&nbsp;</span><br class="">&gt;<span \
class="Apple-converted-space">&nbsp;</span><span \
class="Apple-converted-space">&nbsp;</span><br class="">&gt; 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?<span \
class="Apple-converted-space">&nbsp;</span><br class="">&gt;<span \
class="Apple-converted-space">&nbsp;</span><span \
class="Apple-converted-space">&nbsp;</span><br class="">&gt; Thanks,<span \
class="Apple-converted-space">&nbsp;</span><br class="">&gt;<span \
class="Apple-converted-space">&nbsp;</span><span \
class="Apple-converted-space">&nbsp;</span><br class="">&gt; Tony<span \
class="Apple-converted-space">&nbsp;</span><br class="">&gt;<span \
class="Apple-converted-space">&nbsp;</span><span \
class="Apple-converted-space">&nbsp;</span><br class="">&gt; —————<span \
class="Apple-converted-space">&nbsp;</span><br class="">&gt;<span \
class="Apple-converted-space">&nbsp;</span><span \
class="Apple-converted-space">&nbsp;</span><br class="">&gt; Tony Printezis | \
@TonyPrintezis |<span class="Apple-converted-space">&nbsp;</span><a \
href="mailto:tprintezis@twitter.com" class="">tprintezis@twitter.com</a><span \
class="Apple-converted-space">&nbsp;</span>&lt;mailto:<a \
href="mailto:tprintezis@twitter.com" class="">tprintezis@twitter.com</a>&gt;<span \
class="Apple-converted-space">&nbsp;</span><br class="">&gt;<span \
class="Apple-converted-space">&nbsp;</span></div></div></span></blockquote></div></blockquote></div><br \
class=""></div></body></html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic