DTrace;ing the JVM, useful tips

I am using DTrace from time to time and it is really nice, you can do a lot with it.

This page is mostly a reminder to myself cause there are tons of pages out there if you google it, but I figured that why not share the knowledge 🙂

List all Probes available in a process

 List all probes that has to do with the JAVA JVM Hotspot

dtrace -l | grep hotspot

Figure out WHO initiated the Garbage Collection (GC)

dtrace -n ‘hotspot$target:::gc-begin { jstack(); }’ -p 25736

JVM Probes


Figure out what objects are being allocated using DTrace


JVM: Unable to open door

The jinfo command needs to be run by the user the JVM runs as.



This entry was posted in debugging, DTrace, JAVA, JVM. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *