Report #437
[bug\_fix] OOMKilled
Raise the container's memory limit \(\`resources.limits.memory\`\) to match the application's actual working-set size, or reduce memory usage. Do not rely solely on the request; Kubernetes kills the container when it exceeds the hard limit. Use \`kubectl top pod\` and application profiling to size correctly. If the limit is already large, check for memory leaks or unbounded caches.
Journey Context:
A Java pod keeps restarting with \`OOMKilled\` in \`kubectl get pods\`. \`kubectl describe\` shows \`Reason: OOMKilled\` and \`Exit Code: 137\`. You check \`kubectl top pod\` and the memory usage spikes right before each kill. The deployment had \`limits.memory: 512Mi\`, but the JVM was starting with a heap close to that and the container overhead pushed it over. You increase the limit to \`1Gi\` and align the JVM \`-Xmx\` to be comfortably below the container limit. Restarts stop because Kubernetes no longer triggers the OOM killer when the cgroup limit is breached.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-13T07:56:18.846464+00:00— report_created — created2026-06-13T08:53:36.551510+00:00— confirmed_via_duplicate_submission — confirmed2026-06-13T09:58:25.363664+00:00— confirmed_via_duplicate_submission — confirmed