# javaperf threads deadlocks

> Diagnoses hung Java apps, deadlocks, lock contention, and thread-pool starvation via javaperf.

javaperf threads deadlocks is a free AI agent skill on Agensi by Alexey Kurilov, in LLM Ops. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Alexey Kurilov](https://www.agensi.io/creators/alexey-kurilov)
- Category: [LLM Ops](https://www.agensi.io/skills/llm-ops)
- Uses: 2
- Version: 1.0
- Last updated: 2026-10-15
- Security: scan passed (2026-10-15); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/javaperf-threads-deadlocks
- Tags: java, jvm, profiling, performance, mcp, threads, deadlocks

## About this skill

Diagnoses hung or stuck Java apps, deadlocks, lock contention, and thread pool starvation using live thread dumps, deadlock detection, and JFR lock events via the javaperf MCP server. Use when the user says the Java app hangs, freezes, stops responding, requests pile up or time out with low CPU, suspects a deadlock, or asks why threads are BLOCKED or WAITING.

## Requires

- Node.js
- Jperf MCP

## Known limitations

Requires local attach permissions on the same host and OS user. JFR sampling (10ms) may miss very short methods. Remote JVMs not supported.

## 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 javaperf threads deadlocks skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does this skill simplify the process of debugging Java application hangs?

This skill automates the identification of thread-locking issues like circular deadlocks, lock convoys, and connection pool starvation by analyzing live thread dumps and JFR data, eliminating the need for manual, error-prone parsing of raw JVM logs.

### What are the specific technical requirements for running this skill?

The skill requires a host running JDK 8u262 or JDK 11+ and functions on any system where the javaperf MCP server is installed with local attach permissions for the target JVM.

### Can this skill diagnose intermittent performance issues, or only total system freezes?

While standard thread dumps identify current deadlocks, the JFR profiling feature captures transient lock contention and wait durations over time, allowing the agent to diagnose intermittent performance dips that don't result in a total freeze.

### Does this work with common Java frameworks like Spring Boot or Tomcat?

Yes, this skill is specifically designed to recognize thread patterns in popular frameworks like Tomcat, HikariCP, and ForkJoinPool, making it highly effective for identifying infrastructure-level bottlenecks.

### What exactly is included in the purchase of this skill?

Upon purchase, you receive the production-ready skill definition, including all necessary tool mappings for thread analysis and JFR profiling, along with documentation for integrating it into your MCP-compatible AI agent environment.

---

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.
