Kubernetes & Operations
OOMKilled diagnosis
An OOMKilled exit means the kernel ended a container for passing its memory limit, and the memory that counts includes more than the JVM heap.
What you will be able to do
- Explain how the cgroup memory limit and the OOM killer produce the OOMKilled reason.
- Decide whether a restart is a memory sizing problem or a shutdown problem from the reason and events.
What is in the lesson
- A real situation where this goes wrong
- How it works, step by step
- A walkthrough with commands you can run
- How it fails in production, and how to tell
- Three quiz questions with explanations
Read this lessonFree. No account needed.
More in Kubernetes & Operations
- Requests and limitsIntermediate · 4 min
Requests and limits decide where a pod lands and how much CPU or memory it can use, and a CPU limit can slow a service even when the node sits idle.
- Pod QoSIntermediate · 4 min
A pod's QoS class follows its requests and limits, and that class decides the order in which the kubelet evicts pods when node memory runs short.
- CrashLoopBackOff diagnosisAdvanced · 4 min
CrashLoopBackOff is a waiting state between restarts, and the cause sits in the logs and exit reason of the run that failed, not in the status itself.
- Readiness probesAdvanced · 4 min
A readiness probe decides whether a pod receives Service traffic, and a narrow probe keeps a shared dependency failure from removing every pod at once.
- Startup probesAdvanced · 4 min
A startup probe gives a slow app its own boot budget, so liveness checks can stay tight once the app is running.
- Service and EndpointSliceAdvanced · 4 min
A Service sends traffic only to the endpoints in its EndpointSlices, so a selector or port name mismatch can leave Ready pods with no backends.