Kubernetes: OOMKilled (exit code 137)
The container used more memory than its limit, and the kernel killed it.
exit code 137Out of memory: Killed process Meaning
Memory limits are hard caps. When exceeded, the container is killed immediately (exit 137) — no graceful shutdown, often without application logs.
Common causes
- Memory limit too low for the workload
- Memory leak
- Runtime not container-aware (old JVMs, Node default heap)
- Spikes from large requests/batch jobs
⚡ Quick fix
- Confirm:
kubectl describe pod→ Last State: OOMKilled - Raise
resources.limits.memoryafter measuring real usage (kubectl top pod) - Make runtimes respect limits (
-XX:MaxRAMPercentage,--max-old-space-size)
Detailed fix by platform
Kubernetes
- Resources:yaml
resources: requests: { memory: "256Mi", cpu: "100m" } limits: { memory: "512Mi" }
Node.js
NODE_OPTIONS=--max-old-space-size=384for a 512Mi limit.
How to diagnose
- Reason — OOMKilled in Last State?
- Usage — Actual memory over time?
- Runtime — Heap sized to the limit?
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
Most viewed in Kubernetes
- cannot re-use a name that is still in use Error: INSTALLATION FAILED: cannot re-use a name that is still in use
- error converting YAML to JSON error converting YAML to JSON: yaml: line 12: did not find expected key
- FailedCreatePodSandBox Failed to create pod sandbox: plugin type="calico" failed (add): ... (FailedCreatePodSandBox)
Other ways to find it
Where this error sits
Origin: Platform & cloud. Errors that are often confused with or caused by this one (click to open):
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 14 Oct 2026