Skip to main content
PreparationZone Logo
PrepZone

The JVM Diagnostic Toolkit

jcmd, jstat, JFR.start and JDK Mission Control — the commands you run before you guess.

Pass checkpoint below

jcmd — start here

Java
jcmd <pid> help
jcmd <pid> Thread.print
jcmd <pid> GC.heap_info
jcmd <pid> JFR.start duration=60s filename=recording.jfr

The rest of this guide is part of Pro

Free covers every fresher guide in full. Pro unlocks Senior, Staff and Architect guides across every track.

Still to come · 2 sections

  • jstat — GC at a glance
  • JFR & JMC

Test yourself

Answer these before moving on — recall is what makes it stick.