Skip to content

Instantly share code, notes, and snippets.

@olauzon
Last active August 29, 2015 13:57
Show Gist options
  • Save olauzon/9537198 to your computer and use it in GitHub Desktop.
Save olauzon/9537198 to your computer and use it in GitHub Desktop.
Attach DTrace to JVM
dtrace -ln 'hotspot$target:::' -p <pid>
wget http://www.cs.duke.edu/csl/docs/java/sample/dtrace/hotspot/gc_time_stat.d
chmod 755 gc_time_stat.d
./gc_time_stat.d -p <pid> 60
# See http://www.cs.duke.edu/csl/docs/java/sample/dtrace/hotspot/ for more scripts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment