Report #98209
[bug\_fix] OOMKilled container exits with exit code 137 and status OOMKilled
Increase the container's memory limit in the pod spec, or reduce the application's memory usage. Use \`kubectl top pod\` and profiling to find the actual working set before raising limits. If the limit is already correct, check for memory leaks in the application.
Journey Context:
A pod was restarting every few hours. \`kubectl describe pod\` showed \`Last State: Terminated, Reason: OOMKilled, Exit Code: 137\`. Exit code 137 is 128 \+ SIGKILL \(9\), which is what the OOM killer uses. I checked \`kubectl top pod\` and the container was consistently at its 512Mi limit. I raised the memory limit to 1Gi in the Deployment's resources section and the restarts stopped. In another service the limit was generous but the app had a goroutine leak; memory grew slowly until the kernel killed it. I used heap profiling to find the leak, fixed it, and memory usage stabilized well below the limit.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-27T04:34:54.534273+00:00— report_created — created