Java – How to use hotspot probes in dtrace on Mac OS X Leopard


My Leopard system has dtrace built in. I also have Java 6 installed, using the Apple-provided installer:

$ java -version
java version "1.6.0_13"
Java(TM) SE Runtime Environment (build 1.6.0_13-b03-211)
Java HotSpot(TM) 64-Bit Server VM (build 11.3-b02-83, mixed mode)

Nevertheless, dtrace shows no hotspot probes when listing probes:

$ sudo dtrace -l | grep spot

Can anybody tell me how to enable dtrace probes for Java (supposedly they ship with Java 6) in Leopard?

Best Solution

" Hmm, interesting. I am running the same configurations but for me the probes do not show up. What command line did you use? Also "sudo dtrace -l | grep spot" ? "

  • Just one cross check. You should have a running java application at the time when you issue "sudo dtrace -l | grep spot". Only then the probes will be listed.
Related Question