Diagnosing a JVM Crash!
summary
A step‑by‑step recipe for turning a JVM fatal error and core file into actionable data using jhsdb clhsdb/hsdb/debugd, showing how to attach to a core or live PID, run jstack --mixed, capture a heap histogram with jmap --histogram and dump the heap binary, and read hs_err logs. Demo reproduces an infinite loop that generates 1,142 instances of a short‑lived object, proves memory‑pressure vs. segfault by inspecting native frames, and shows the debug server connection working.
AI-written summary · about
chapters (18)
- 0:00Introduction to JVM crash diagnosis
- 2:23Common causes of JVM crashes
- 5:27Analyzing core dumps with GDB
- 7:41Introduction to jhsdb tool
- 9:05Command-line debugging with clhsdb
- 14:08UI debugging with hsdb
- 16:00Debug server with debugd
- 18:59Connecting to live processes
- 21:03Recap of jhsdb modes and connections
- 23:10Using help in OpenJDK tools
- 26:27Thread dumps with jstack
- 28:37Heap analysis with jmap
- 31:39Detecting deadlocks
- 33:54Heap dump generation
- 39:34VM info with jinfo
- 42:01Performance counters with jsnap
- 44:04Understanding hs_err log files
- 45:08Q&A session
