Report #99139
[bug\_fix] OOMKilled
Raise the container memory limit \(and optionally the request\) after profiling actual peak usage, or reduce the application's memory footprint. The process was killed by the kernel OOM killer because usage exceeded the cgroup memory limit set by resources.limits.memory.
Journey Context:
A Python data-processing worker kept restarting with OOMKilled status. kubectl describe showed 'Reason: OOMKilled' and 'Exit Code: 137'. kubectl top pod confirmed memory climbed steadily to the 512Mi limit then the container died. Logs cut off mid-batch with no stack trace. We exec'd into a debug copy, ran the workload with memory\_profiler, and saw peak RSS hit 780Mi during large JSON deserialization. The Deployment's resources.limits.memory was raised from 512Mi to 1Gi and requests.memory from 256Mi to 700Mi. Restarts stopped because the cgroup no longer triggered the OOM killer, and the scheduler placed the pod on a node with enough headroom.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-29T04:37:57.919339+00:00— report_created — created