# Java Thread Dump Analyzer: Find Hangs, Deadlocks, Pools

> Reads jstack / jcmd thread dumps offline and names why a Java or Spring Boot service hangs: deadlocks, an exhausted HikariCP or HTTP client pool and who holds it, lock contention, slow SQL or HTTP calls, regex backtracking.

Java Thread Dump Analyzer: Find Hangs, Deadlocks, Pools is a paid AI agent skill on Agensi by Singgih Rochmad Saputro. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $1 (one-time purchase)
- Creator: [Singgih Rochmad Saputro](https://www.agensi.io/creators/singgihrs)
- Version: 1.0
- Last updated: 2026-12-02
- Security: scan passed (2026-12-02); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/java-thread-dump-analyzer-find-hangs-deadlocks-pools
- Tags: apis-backend, testing-debugging, devops-cloud

## About this skill

A thread dump shows what every thread in the JVM was doing at one moment. A hung or
slow service almost always shows the cause there: request threads queued for a
database connection, a lock held during a slow call, a deadlock. The raw dump has
hundreds of threads, most of them idle. This skill filters out the idle ones,
groups the rest, and names the cause.

Two or three dumps taken 5–10 seconds apart **while the problem is happening**
(one is enough for a deadlock):

- Kubernetes: `kubectl exec <pod> -- jcmd 1 Thread.print > dump1.txt`.
- No JDK tools in the container: `kill -3 <pid>` prints the dump to the process's
  stdout (the pod log).
- Find the pid with `jcmd -l` or `jps -l`.

1. Run the analyzer (Python 3.8+, standard library only; it only reads the files):

## Requires

- Python 3.8+
- Optional: JDK tools (jcmd or jstack) to take the dumps

## Known limitations

Reads HotSpot/OpenJDK dumps (jstack, jcmd Thread.print, kill -3); IBM/OpenJ9 javacores are not parsed. Virtual threads (JDK 21+) don't appear in jstack output, and the Thread.dump_to_file format isn't read. A single dump can't tell a stuck thread from a slow one; take two or three. High CPU with no busy app thread usually means GC, which thread dumps don't show.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Java Thread Dump Analyzer: Find Hangs, Deadlocks, Pools skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What does Java Thread Dump Analyzer: Find Hangs, Deadlocks, Pools do?

Reads jstack / jcmd thread dumps offline and names why a Java or Spring Boot service hangs: deadlocks, an exhausted HikariCP or HTTP client pool and who holds it, lock contention, slow SQL or HTTP calls, regex backtracking.

### Which AI agents support Java Thread Dump Analyzer: Find Hangs, Deadlocks, Pools?

This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

### How do I use Java Thread Dump Analyzer: Find Hangs, Deadlocks, Pools?

Connect your AI agent to Agensi through MCP, then ask it to use Java Thread Dump Analyzer: Find Hangs, Deadlocks, Pools on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
