Analyzing HotSpot Crashes
summary
Shows exactly how hs_err_pid, core dumps and replay data files record registers, mixed Java/native stacks, last VM events and bytecode disassembly so crashes can be traced to a guilty action (unsafe write, JNI heap corruption, metaspace leak, or bad JIT output). Demonstrates tools: jcmd to trigger info dumps, Java HotSpot Debugger / Serviceability Agent to inspect core files and regenerate class jars, reproduces a metaspace leak (320 instance classes) and a C2 compiler crash and verifies fixes.
AI-written summary · about
chapters (15)
- 0:00Introduction to HotSpot crashes
- 1:21What is a HotSpot crash?
- 5:14Example of a HotSpot crash
- 10:15HotSpot error file contents
- 13:28How HotSpot error files are generated
- 15:59Analyzing interpreter crashes
- 21:56Using J command for info logs
- 22:17Out of memory errors and crash files
- 25:24Serviceability agent overview
- 32:44JIT compiler crashes and replay files
- 39:48Replay file limitations with lambdas
- 44:44Building replay jars from core files
- 47:58Crash location vs crash reason
- 50:06Further resources and references
- 51:28Q&A session
