analyze_thread_dump
Parse JVM thread dumps to analyze thread states, detect deadlocks, identify lock contention, and find thread starvation patterns.
Instructions
Parse a JVM thread dump (jstack output) and analyze thread states, detect deadlocks, identify lock contention hotspots, and find thread starvation patterns. Handles both platform threads and virtual threads (Java 21+). Note: deadlock detection covers synchronized monitor locks only — java.util.concurrent.locks.ReentrantLock and other j.u.c lock types do not expose their waiters in thread dump lock info and will not be detected.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"thread_dump": "<thread_dump>"
},
"name": "analyze_thread_dump"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| thread_dump | Yes | The full thread dump text (from jstack, kill -3, or VisualVM) |