Skip to content

Instantly share code, notes, and snippets.

@hicolour
Last active July 21, 2020 03:27
Show Gist options
  • Save hicolour/e4b1e33aa56afb234575 to your computer and use it in GitHub Desktop.
Save hicolour/e4b1e33aa56afb234575 to your computer and use it in GitHub Desktop.
jvm-debuging

tools

basic info

jcmd <PID> PerfCounter.print

thread dump

jcmd <PID> Thread.print

enable jmx

jcmd <PID> ManagementAgent.start

top

top -H -p <PID>

pid to nid (Native thread id)

printf "%x" <PID>

strace

strace -f -v -p <PID>

missioncontrol

jmc

jvisualvm

jvisualvm

flights recorder

-XX:+UnlockCommercialFeatures -XX:+FlightRecorder

jcmd <PID> JFR.start duration=60s filename=myrecording.jfr

links

talks

papers

blogs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment