# javaperf cpu hotspots

> Finds CPU hot spots in a running Java service via JFR and the javaperf MCP server.

javaperf cpu hotspots 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: 1
- 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-cpu-hotspots
- Tags: java, performance, profiling, jvm, mcp, cpu, hotspots

## About this skill

Finds CPU hot spots in a running Java service by recording JFR under load and ranking the hottest methods and call paths via the javaperf MCP server. Use when the user says the Java backend is slow, has high CPU or latency, wants to find hot spots during a load test, or asks which methods burn the most CPU.

## Requires

- Node.js
- Jperf MCP

## Known limitations

Requires javaperf MCP server and local JVM access. JFR sampling (10ms) may miss very fast methods. Does not cover heap leaks or lock contention.

## 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 cpu hotspots 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 help me identify performance bottlenecks more efficiently than manual tools?

This skill automates the execution and analysis of Java Flight Recorder (JFR) sessions, transforming raw binary profiling data into actionable insights about which specific code methods are consuming the most CPU cycles.

### What are the technical prerequisites for running javaperf cpu hotspots?

The skill requires a host environment with JDK 8u262+ or 11+, Node.js 18+, and the javaperf MCP server installed to bridge the AI agent with your local JVM processes.

### Can I use this skill to troubleshoot live production services?

Yes, by utilizing Java Flight Recorder's low-overhead sampling, this skill can safely profile production services to diagnose high CPU usage or latency spikes with minimal impact on application performance.

### Does this skill also analyze memory leaks or thread synchronization issues?

While this skill is purpose-built for CPU execution profiling and call-path analysis, it is not designed to detect memory leaks, heap issues, or thread deadlocks.

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

You receive the specialized AI agent skill configuration and instructions necessary to orchestrate JVM discovery, JFR data parsing, and automated diagnostic reporting via the javaperf MCP server.

---

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.
