Report #749
[bug\_fix] OOMKilled container exits with exit code 137
Increase the container's memory \`limit\` \(and usually \`request\`\) in the pod spec, or reduce the application's memory footprint. Check \`kubectl describe pod\` for \`Reason: OOMKilled\` and \`Last State: Terminated\` with exit code 137, and verify with \`kubectl top pod\`. If the app genuinely needs more RAM, raise limits; if it has a memory leak, fix the leak.
Journey Context:
A Java or Python workload runs fine locally but in Kubernetes it restarts every few hours with OOMKilled. You run \`kubectl get pod -o yaml\` and see container \`lastState.terminated.reason: OOMKilled\` and \`exitCode: 137\`. \`kubectl top pod\` shows memory pegged at the limit. The local container had 8 GB but the manifest set \`resources.limits.memory: 512Mi\`. The kernel's OOM killer sent SIGKILL \(137 = 128 \+ SIGKILL 9\) when the cgroup exceeded its limit. Bumping the limit to a value matching the JVM heap \+ overhead stops the restarts.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-13T12:53:33.095328+00:00— report_created — created