Kubernetes Container Terminated: OOMKilled (Exit Code 137)
Container working set exceeded `resources.limits.memory` cgroup cap.
Runs locally in browser
Free · No login
Independently Verified 2026-11-25
v4.1.0
Identifier: Kubernetes Container Terminated
Platform: Kubernetes
Common Root Causes:
- Container working set exceeded `resources.limits.memory` cgroup cap.
Interactive Diagnostic Checklist
Verified Solutions:
- Profile heap usage, tune runtime heap ceiling (e.g. JVM/Node), and size `limits.memory` accurately.
Safe Diagnostic Command:
kubectl describe pod <pod> | grep -E "Reason:|Limits:" -A2
Warning: Verify configuration changes in staging or with dry-run flags (e.g. nginx -t) before reloading production services.
Technical Explanation
Container working set exceeded `resources.limits.memory` cgroup cap. Recommended diagnostic: `kubectl describe pod <pod> | grep -E "Reason:|Limits:" -A2`. Remediation: Profile heap usage, tune runtime heap ceiling (e.g. JVM/Node), and size `limits.memory` accurately.
Worked Examples
- Run `kubectl describe pod <pod> | grep -E "Reason:|Limits:" -A2` to verify root cause before applying the remediation.
Limitations & Assumptions
- Always verify configuration changes in staging or with dry-run flags (e.g. `nginx -t`) before reloading production services.
Source References & Verification
Resource ID: err-k8s-oomkilled-137-memory-limit · Independently verified: 2026-11-25