diagnose_jvm
Analyze JVM thread dumps and GC logs to detect deadlocks, lock contention, and GC pressure, with cross-correlation for precise diagnosis.
Instructions
Unified JVM diagnosis combining thread dump and GC log analysis with cross-correlation. Detects deadlocks, lock contention, GC pressure, and GC-induced cascading thread blocks. When both inputs are provided from the same time window, cross-correlates high GC overhead with contention and flags long GC pauses causing thread starvation. Either input can be omitted for single-source analysis.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gc_log | No | GC log text (from -Xlog:gc* for Java 9+, or -verbose:gc for Java 8). Provide the portion covering the time window when the thread dump was taken — trim the log to the symptom window if it is large. Logs from a different time period produce spurious correlations. | |
| thread_dump | No | Thread dump text (from jstack, kill -3, or VisualVM). Capture during active symptoms for meaningful cross-correlation — a dump from a healthy period will not correlate with GC pressure visible in the log. |