The OpenJDK Mac OS X Port now has dtrace probes. Many of these probes are enabled automatically, though some resource intensive probes must be
enabled with a JVM argument. Java code JSDT probes are not supported. (For dtrace implementation information, see Mac OS X Port Dtrace Probe Implementation.)
What Is It Good For?
DTrace and its probes allow the Java developer and plain old Java user to learn more about the execution of a given Java process without
modifying any of the code. For example, if you want to know when garbage collection starts in a running java program with pid 12345, you'd
type:
...