Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save laszlomiklosik/9739183 to your computer and use it in GitHub Desktop.
Save laszlomiklosik/9739183 to your computer and use it in GitHub Desktop.
Create heap dump on the fly using jmap
# jmap is in $JAVA_HOME/bin/ (assumed in your path, but you can use the complete path if it's not)
jmap -dump:format=b,file=heap_dump.hprof <process ID>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment