# OOMGuard: Kubernetes OOMKilled Diagnostician

> Works out why a pod is getting exit 137 - undersized limit, memory leak, or node pressure - reads JVM and Node heap behaviour, and sets requests and limits with a justified buffer.

OOMGuard: Kubernetes OOMKilled Diagnostician is a subscription AI agent skill on Agensi by AllAccessData, in Productivity. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $5/mo (subscription, cancel anytime)
- Creator: [AllAccessData](https://www.agensi.io/creators/allaccessdata)
- Category: [Productivity](https://www.agensi.io/skills/productivity)
- Version: 1.1
- Last updated: 2026-11-28
- Security: scan passed (2026-11-28); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/oomguard-kubernetes-oomkilled-diagnostician
- Tags: devops-cloud, testing-debugging, productivity

## About this skill

**OOMGuard: Kubernetes OOMKilled Memory Limit Tuner** Exit code 137 tells you the container was killed. It does not tell you whether the limit was too low or the application was leaking, and raising the limit works equally well for both - for a while.

Built for DevOps and SRE teams chasing restart loops. Runs on Claude, Codex, Hermes, Gemini, and GPT-4 and any framework that loads a SKILL.md.

What's included:
* **OOM event analysis:** exit 137 occurrences correlated with the pod's memory curve, so the shape of the growth is visible rather than just the fact of the kill.
* **Leak versus undersize:** memory that plateaus near the limit means the limit is wrong; memory that climbs steadily from every restart means the application is leaking and more headroom only buys time. The distinction determines which fix is the right one.
* **Runtime-aware reading:** JVM and Node heap behaviour interpreted against total container memory, which is where most of the confusion lives.
* **Requests and limits with a buffer:** values derived from observed working set plus headroom, with the reasoning shown.
* **Local execution:** kubectl output and the calculations run on your machine.

_Three things that cause wrong conclusions. First, exit 137 is not always your container exceeding its own limit - under node memory pressure the kubelet evicts and the kernel OOM killer can take a pod that was within its limit, and the fix for that is node capacity or requests, not the container's ceiling._

_Second, on the JVM: the container dies at a limit that looks generous next to `-Xmx` because heap is not the whole footprint. Metaspace, thread stacks, code cache, direct byte buffers and the allocator's own overhead live outside it, and a container sized to heap plus a token margin will be killed. Size with `MaxRAMPercentage` against the container limit rather than setting `-Xmx` and hoping._

_Third, the gap between requests and limits is a scheduling decision as much as a memory one. Requests equal to limits gives the pod Guaranteed QoS and the strongest protection from eviction; a wide gap gets you better packing and makes that pod an early candidate when a node comes under pressure. Choose deliberately rather than inheriting whatever the chart's defaults were._

## 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 OOMGuard: Kubernetes OOMKilled Diagnostician skill from Agensi" and describe your task.
3. Subscribe 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 OOMGuard: Kubernetes OOMKilled Diagnostician do?

Works out why a pod is getting exit 137 - undersized limit, memory leak, or node pressure - reads JVM and Node heap behaviour, and sets requests and limits with a justified buffer.

### Which AI agents support OOMGuard: Kubernetes OOMKilled Diagnostician?

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 OOMGuard: Kubernetes OOMKilled Diagnostician?

Connect your AI agent to Agensi through MCP, then ask it to use OOMGuard: Kubernetes OOMKilled Diagnostician 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.
