# JVM GC Log Analyzer: Pauses, Leaks, Full GCs

> Reads a Java service's garbage collection log and tells you why it pauses or runs out of memory, with the setting or code change that fixes it.

JVM GC Log Analyzer: Pauses, Leaks, Full GCs is a paid AI agent skill on Agensi by Singgih Rochmad Saputro, in DevOps & Cloud. 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)
- Category: [DevOps & Cloud](https://www.agensi.io/skills/devops-cloud)
- Version: 1.0
- Last updated: 2026-12-04
- Security: scan passed (2026-12-04); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/jvm-gc-log-analyzer-pauses-leaks-full-gcs
- Tags: coding, devops

## What it does

- Reads GC logs from Java 8 through current versions and all the common collectors
- Shows how long the app was paused, how often, and how much time it lost to GC
- Spots memory that keeps growing across the log, the usual sign of a leak
- Names the cause of each Full GC and long pause in plain words
- Catches GC threads starved of CPU by container limits
- Gives the exact JVM flag or code change to try first, and how to confirm it worked

## Who it's for

- **Backend developers on Java, Kotlin or Scala:** Turns a long GC log into a verdict, the numbers behind it and the fix, without a separate tool. Try: "Here's gc.log from our order service, why does p99 latency spike every few minutes?"
- **SRE and on-call engineers:** Tells in minutes whether a slow or restarting JVM is a leak, a too-small heap or CPU throttling. Try: "Our pod gets OOMKilled every night, here's the GC log, is it a leak?"
- **Teams moving a JVM app into containers:** Finds the heap, GC thread and CPU limit settings that hurt after the move to Kubernetes. Try: "Pauses got much longer after we moved to Kubernetes, check this GC log"

## About this skill

A JVM's GC log holds the answer to most "why is it slow" and "why does it keep running out of memory" questions, but a few hours of logging is tens of thousands of lines in one of a dozen formats.

This skill gives your AI agent a small offline analyzer and a reference of fixes. Give it the GC log (rotated files too) and it reports:

- **The verdict** in one sentence, ranked by severity.
- **Pause numbers**: count, total, p50, p95, p99 and max per pause type, and the share of time spent outside GC.
- **Live data over time**: the lowest heap after GC in each third of the log, which shows a leak or a heap too small for its data.
- **Causes**: Full GCs and what triggered them, evacuation failures, humongous (very large) allocations, metaspace, System.gc() calls from code, RMI or monitoring tools, ZGC allocation stalls, Shenandoah degenerated cycles, CMS concurrent mode failures, and GC threads waiting for CPU under container limits.
- **The fix** for each: the JVM flag to change or the code pattern to look for, and what the report should show once it's fixed.

Works with JDK 9+ unified logging (-Xlog:gc*) for G1, Parallel, Serial, ZGC and Shenandoah, and JDK 8 logs (-XX:+PrintGCDetails) for Parallel, CMS and G1. Nothing leaves your machine.

## Requires

- Python 3.8+

## Known limitations

Only stop-the-world pauses count toward throughput; the CPU that ZGC and Shenandoah spend concurrently is not shown. OpenJ9 (IBM) verbose GC XML is not parsed. One log covers one JVM. A live set that grows over a short log can be warm-up rather than a leak; use several hours of log before calling it a leak.

## Technical details

Built as an Agent Skill (SKILL.md) for Claude Code and other agents that read SKILL.md and can run Python.

Files: SKILL.md (when and how to use it), scripts/gc_log.py (the analyzer, Python 3.8+ standard library only), references/fixes.md (flags and code changes per finding).

Usage: python3 scripts/gc_log.py gc.log.0 gc.log.1 gc.log [--pause-goal 100] [--json]. Rotated files are passed oldest first. Output is Markdown by default or JSON with --json. Exit code 0 means healthy, 1 means problems or warnings were found, 2 means the input is not a GC log.

Parsing: unified log decorations (uptime, time), pause lines with heap before/after/capacity, User/Sys/Real times, ZGC cycle lines and allocation stalls, humongous region counts, region size and max heap from the startup lines. JDK 8: PrintGCDetails lines for PSYoungGen/ParOldGen, ParNew/CMS, DefNew and G1 (with the Heap: and Times: lines that follow).

Reads only the files you pass; no network access, nothing written.

## 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 JVM GC Log Analyzer: Pauses, Leaks, Full GCs 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 JVM GC Log Analyzer: Pauses, Leaks, Full GCs do?

Reads a Java service's garbage collection log and tells you why it pauses or runs out of memory, with the setting or code change that fixes it.

### Which AI agents support JVM GC Log Analyzer: Pauses, Leaks, Full GCs?

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 JVM GC Log Analyzer: Pauses, Leaks, Full GCs?

Connect your AI agent to Agensi through MCP, then ask it to use JVM GC Log Analyzer: Pauses, Leaks, Full GCs 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.
