Exit Code 137 – Fixing OOMKilled Kubernetes Error
The OOMKilled error in Kubernetes occurs when a container exceeds its memory limit and is terminated by the system with an exit code 137. This error can be diagnosed by checking pod logs, monitoring memory usage, and using a memory profiler. Common causes of this error include reaching the container's memory limit, experiencing a memory leak in the application, or overcommitting the node's memory resources. To fix the OOMKilled error, adjust memory limits and requests for pods, optimize application code to reduce memory consumption, and monitor memory usage in Kubernetes pods and containers.
Company
Spacelift
Date published
June 16, 2023
Author(s)
Jack Roper
Word count
1368
Hacker News points
None found.
Language
English