Kubernetes: OOMKilled (Exit Code 137)

Container exceeded its spec.containers[].resources.limits.memory cgroup ceiling.

Runs locally in browser Free · No login Independently Verified 2026-11-25 v4.0.0
Identifier: Kubernetes: OOMKilled (Exit Code 137) Platform: Kubernetes

Interactive Diagnostic Checklist

Safe Diagnostic Command:
kubectl get pod <pod> -o jsonpath="{.status.containerStatuses[*].lastState}"

Technical Explanation

Container exceeded its spec.containers[].resources.limits.memory cgroup ceiling. Verified resolution path: Profile container RSS memory usage and adjust memory requests/limits or fix memory leaks.

Worked Examples

  • Read-only diagnostic command: kubectl get pod <pod> -o jsonpath="{.status.containerStatuses[*].lastState}"

Limitations & Assumptions

  • Always verify which infrastructure layer (CDN, Nginx, runtime, OS, or database) emitted the error before modifying production config.

Source References & Verification

Resource ID: err-k8s-oomkilled · Independently verified: 2026-11-25

Related Resources