On Thu, Jul 24, 2014 at 5:10 AM, skele...@lissyara.su via dtrace-discuss <
dtrace-discuss@lists.dtrace.org> wrote:

>
>
>> I probably won’t explain this correctly, but because of lazy loading you
>> first need to fire the probes before they will be visible.  After
>> starting the Java process run:
>>
>> dtrace -n ‘hotspot*::: { @[probename] = count(); }’
>>
>> Then you should be able to list all the probes.
>>
>> Here is an old thread on dtrace-discuss talking about lazy loading of
>> probes:
>>
>> https://www.mail-archive.com/dtrace-discuss@opensolaris.org/msg03853.html
>>
>> Oh, and here is another one claiming lazy loading was added in in JDK
>> 1.6.0u25:
>>
>> http://thr3ads.net/dtrace-discuss/2011/07/1132880-
>> Question-about-application-supplied-probes-and-tracking-the-impact
>>
>> -Z
>>
>
> Of course, I try it when application is running. Here is ouput:
>
>
> # ps -efc | grep java
>     root  2398  1186   TS  49 12:05:28 pts/2       0:00 grep java
>     root  1050     1   TS  59   Jul 21 ?           8:19 /bin/java -Xms256m
> -Xmx1g -Xss256k -Djava.awt.headless=true -XX:+UseParNewGC -X
>
> # pargs 1050 | grep -i dtrace
>
> argv[7]: -XX:+ExtendedDTraceProbes
> argv[8]: -XX:+DTraceMethodProbes
> argv[9]: -XX:+DTraceAllocProbes
> argv[10]: -XX:+DTraceMonitorProbes
>
> # dtrace -n  'hotspot*::: { @[probename] = count(); }'
> dtrace: invalid probe specifier hotspot*::: { @[probename] = count(); }:
> probe description hotspot*::: does not match any probes
>
> So, lazy loading doesn't blame here.
>
>
>

Can you try
# dtrace -n hotspot1050:::'{@[probename]=count()}'

This seems to work for me on 1.7.0_55

-Angelo


>
> -------------------------------------------
> dtrace-discuss
> Archives: https://www.listbox.com/member/archive/184261/=now
> RSS Feed: https://www.listbox.com/member/archive/rss/184261/
> 21483697-fa99db1e
> Modify Your Subscription: https://www.listbox.com/
> member/?&
> Powered by Listbox: http://www.listbox.com
>



-------------------------------------------
dtrace-discuss
Archives: https://www.listbox.com/member/archive/184261/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184261/25769126-e243886f
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=25769126&id_secret=25769126-8d47a7b2
Powered by Listbox: http://www.listbox.com

Reply via email to