Discussion:
No hotspot probes available?
(too old to reply)
Ted Graham
2008-12-15 17:21:33 UTC
Permalink
I'm new to DTrace; been working through the "Solaris Performance and Tools" book this morning. DTrace is working great, I've learned some interesting things, and have run a number of the DTrace Toolkit scripts and written a few tiny ones.

However, I can't get any of the hotspot probes to work. DTrace reports no probes that match hotspot. I'm running the OpenSolaris 11/08 release, using the default java (which is 1.6.10).

See the following:

***@opensolaris:/usr/Emporos# dtrace -l | wc
56144 279580 4262222

***@opensolaris:/usr/Emporos# dtrace -ln 'hotspot*:::'
ID PROVIDER MODULE FUNCTION NAME
dtrace: failed to match hotspot*:::: No probe matches description

***@opensolaris:/usr/Emporos# java -version
java version "1.6.0_10"
Java(TM) Platform, Standard Edition for Business (build 1.6.0_10-b33)
Java HotSpot(TM) Server VM (build 11.0-b15, mixed mode)
--
This message posted from opensolaris.org
Russ Petruzzelli
2008-12-15 17:31:10 UTC
Permalink
I've seen this message when I'm in a zone... works in global zone, in
my case...

Russ
Post by Ted Graham
...
dtrace: failed to match hotspot*:::: No probe matches description
Keith McGuigan
2008-12-15 17:31:21 UTC
Permalink
If you do an 'elfdump' on the <JAVA_HOME>/jre/lib/i386/client/libjvm.so
file in the JDK (well, any libjvm.so you find in there will work), does
it show any SUNW_dof sections? If it doesn't, then I suspect the binary
in that package was built incorrectly.

If you download the JDK from java.sun.com and install it manually, do
you get the same problem? I suspect the java.sun.com package might
work. If so, then there's a problem with the Java package that's being
distributed for opensolaris.

--
- Keith
Post by Ted Graham
I'm new to DTrace; been working through the "Solaris Performance and Tools" book this morning. DTrace is working great, I've learned some interesting things, and have run a number of the DTrace Toolkit scripts and written a few tiny ones.
However, I can't get any of the hotspot probes to work. DTrace reports no probes that match hotspot. I'm running the OpenSolaris 11/08 release, using the default java (which is 1.6.10).
56144 279580 4262222
ID PROVIDER MODULE FUNCTION NAME
dtrace: failed to match hotspot*:::: No probe matches description
java version "1.6.0_10"
Java(TM) Platform, Standard Edition for Business (build 1.6.0_10-b33)
Java HotSpot(TM) Server VM (build 11.0-b15, mixed mode)
Chip Bennett
2008-12-15 17:36:51 UTC
Permalink
Ted,

First, welcome to DTrace: I think you'll enjoy the ride.

Since the hotspot provider is a USDT (User Statically Defined Tracing)
provider, the provider name is going to be hotspot1234, 1234 is the PID
of the JVM process. The probes don't get created until the JVM is
running, and they go away when the JVM exits.

And just in case this question comes up, some of probes that tend to
fire very often require the -XX:+ExtendedDTraceProbes JVM option to be
active.

In you haven't seen it, see
http://java.sun.com/javase/6/docs/technotes/guides/vm/dtrace.html for
what I believe is the official documentation for the hotspot probes.
Keep in mind that even though the documentation show the "args" array
being used, USDT probes don't support the args array. You have to use
the built-in variables, arg0, arg1, etc.

Chip
-----Original Message-----
Sent: Monday, December 15, 2008 11:22 AM
Subject: [dtrace-discuss] No hotspot probes available?
I'm new to DTrace; been working through the "Solaris Performance and
Tools" book this morning. DTrace is working great, I've learned some
interesting things, and have run a number of the DTrace Toolkit
scripts
and written a few tiny ones.
However, I can't get any of the hotspot probes to work. DTrace
reports
no probes that match hotspot. I'm running the OpenSolaris 11/08
release, using the default java (which is 1.6.10).
56144 279580 4262222
ID PROVIDER MODULE FUNCTION NAME
dtrace: failed to match hotspot*:::: No probe matches description
java version "1.6.0_10"
Java(TM) Platform, Standard Edition for Business (build 1.6.0_10-b33)
Java HotSpot(TM) Server VM (build 11.0-b15, mixed mode)
--
This message posted from opensolaris.org
_______________________________________________
dtrace-discuss mailing list
Ted Graham
2008-12-15 18:56:27 UTC
Permalink
Thanks for the quick responses! It appears that you are correct, the binary delivered with OpenSolaris 11/08 doesn't have the hotspot provider. Once I installed a new Java from Sun, I have the hotspot probes. Thanks much, it would have been a long time before I figured that out.

Ted

See the elfdump output below (there is no SUNW_dof), hopefully what is there means something to you.

***@opensolaris:~$ elfdump /usr/jdk/instances/jdk1.6.0/jre/lib/i386/libjvm.so | grep SUNW
p_paddr: 0 p_type: [ PT_SUNWCAP ]
Section Header[1]: sh_name: .SUNW_cap
sh_size: 0x10 sh_type: [ SHT_SUNW_cap ]
[248] 0x00000000 0x00000000 OBJT GLOB D 0 ABS SUNWprivate_1.1
[2] 0x000000b4 0x00000000 SECT LOCL D 0 .SUNW_cap
[29] 0x00000000 0x00000000 SECT LOCL D 0 .SUNW_cap
[31] 0x00000000 0x00000000 SECT LOCL D 0 .SUNW_cap
[4691] 0x00000000 0x00000000 OBJT LOCL D 0 .SUNW_cap _START_
[18750] 0x00000000 0x00000000 OBJT GLOB D 0 ABS SUNWprivate_1.1
[248] SUNWprivate_1.1
[25] SUNW_CAP 0xb4
Hardware/Software Capabilities Section: .SUNW_cap
[0] CA_SUNW_HW_1 0x5 [ CX8 FPU ]
--
This message posted from opensolaris.org
Keith McGuigan
2008-12-15 18:57:21 UTC
Permalink
I'm not familiar with opensolaris packaging. We should somehow get a
bug report into them about this. Is anyone on this list familiar with
the process or able to do that?

--
- Keith
Post by Ted Graham
Thanks for the quick responses! It appears that you are correct, the binary delivered with OpenSolaris 11/08 doesn't have the hotspot provider. Once I installed a new Java from Sun, I have the hotspot probes. Thanks much, it would have been a long time before I figured that out.
Ted
See the elfdump output below (there is no SUNW_dof), hopefully what is there means something to you.
p_paddr: 0 p_type: [ PT_SUNWCAP ]
Section Header[1]: sh_name: .SUNW_cap
sh_size: 0x10 sh_type: [ SHT_SUNW_cap ]
[248] 0x00000000 0x00000000 OBJT GLOB D 0 ABS SUNWprivate_1.1
[2] 0x000000b4 0x00000000 SECT LOCL D 0 .SUNW_cap
[29] 0x00000000 0x00000000 SECT LOCL D 0 .SUNW_cap
[31] 0x00000000 0x00000000 SECT LOCL D 0 .SUNW_cap
[4691] 0x00000000 0x00000000 OBJT LOCL D 0 .SUNW_cap _START_
[18750] 0x00000000 0x00000000 OBJT GLOB D 0 ABS SUNWprivate_1.1
[248] SUNWprivate_1.1
[25] SUNW_CAP 0xb4
Hardware/Software Capabilities Section: .SUNW_cap
[0] CA_SUNW_HW_1 0x5 [ CX8 FPU ]
Alan Coopersmith
2008-12-15 20:20:28 UTC
Permalink
Anyone can report a bug against OpenSolaris at http://defect.opensolaris.org/

-Alan Coopersmith- alan.coopersmith-xsfywfwIY+***@public.gmane.org
Sun Microsystems, Inc. - X Window System Engineering
Post by Keith McGuigan
I'm not familiar with opensolaris packaging. We should somehow get a
bug report into them about this. Is anyone on this list familiar with
the process or able to do that?
--
- Keith
Post by Ted Graham
Thanks for the quick responses! It appears that you are correct, the binary delivered with OpenSolaris 11/08 doesn't have the hotspot provider. Once I installed a new Java from Sun, I have the hotspot probes. Thanks much, it would have been a long time before I figured that out.
Ted
See the elfdump output below (there is no SUNW_dof), hopefully what is there means something to you.
p_paddr: 0 p_type: [ PT_SUNWCAP ]
Section Header[1]: sh_name: .SUNW_cap
sh_size: 0x10 sh_type: [ SHT_SUNW_cap ]
[248] 0x00000000 0x00000000 OBJT GLOB D 0 ABS SUNWprivate_1.1
[2] 0x000000b4 0x00000000 SECT LOCL D 0 .SUNW_cap
[29] 0x00000000 0x00000000 SECT LOCL D 0 .SUNW_cap
[31] 0x00000000 0x00000000 SECT LOCL D 0 .SUNW_cap
[4691] 0x00000000 0x00000000 OBJT LOCL D 0 .SUNW_cap _START_
[18750] 0x00000000 0x00000000 OBJT GLOB D 0 ABS SUNWprivate_1.1
[248] SUNWprivate_1.1
[25] SUNW_CAP 0xb4
Hardware/Software Capabilities Section: .SUNW_cap
[0] CA_SUNW_HW_1 0x5 [ CX8 FPU ]
_______________________________________________
dtrace-discuss mailing list
Ted Graham
2008-12-15 20:43:11 UTC
Permalink
Open http://defect.opensolaris.org/bz/show_bug.cgi?id=5836

Thanks, all
--
This message posted from opensolaris.org
Loading...