Report #5053
[bug\_fix] OOMKilled
Run kubectl describe pod and look for Last State: Terminated, Reason: OOMKilled, Exit Code: 137. Compare actual usage with kubectl top pod or Prometheus metrics. If the workload really needs more memory, raise resources.requests.memory and resources.limits.memory together and tune runtime heap settings such as -XX:MaxRAMPercentage for Java. If usage is unexpected, profile the app for leaks instead of just raising limits.
Journey Context:
A Java service under load keeps restarting. kubectl describe shows OOMKilled with exit code 137 and memory usage is pinned at the 512Mi limit. Raising the limit to 1Gi and setting -XX:MaxRAMPercentage=75.0 stops the kills because the container cgroup limit is no longer exceeded and the JVM heap is sized relative to that limit.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T20:34:35.696588+00:00— report_created — created