A container is consistently OOMKilled under normal workload. How do you debug and fix it?
- Check kube events and dmesg for OOMKilled
- Inspect resource requests/limits vs usage
- Profile memory usage inside container
- Fix leaks or adjust JVM/GC/heap configs
- Raise limits or split workload across pods
- 💡Heap configs often mismatch pod memory limits.
- ⚠️Focusing solely on Kubernetes limits without investigating application-level memory usage.
- ⚠️Not checking kernel-level logs (dmesg) for the OOM killer's direct indication.
- ⚠️Assuming the issue is external to the application without proper profiling.
- ⚠️Forgetting to correlate observed memory usage with defined resource requests/limits.
- ⚠️Not considering the possibility of memory fragmentation or other node-level memory issues.
- ❓How to prevent noisy neighbor OOMs?
- ❓What about memory QoS in k8s?
Ready to prove your Kubernetes administration knowledge?
Practice with free Certified Kubernetes Administrator (CKA) (CKA) exam questions. Instant answers and detailed explanations — no account required.
Start free practice quizQuestions that share similar topics with this one
Kubernetes Pod Stuck in Pending
IntermediateKubernetes Pod Stuck in Pending
IntermediateService in CrashLoopBackOff
IntermediateContainer Image Pulls Throttled by Registry
IntermediateDocker vs Virtual Machines
BeginnerDeepen your knowledge with these related blog posts
EKS Cluster Upgrades: A Production Runbook for Platform Teams
A comprehensive guide to safely upgrading Amazon EKS clusters at scale. Covers pre-flight checks, control plane upgrades, add-on versioning, node group strategies, rollback procedures, common anti-patterns, and fleet automation.
From Terraform to GitOps: A Practical Migration Roadmap
A step-by-step guide to migrating from traditional Terraform workflows to GitOps, including migration patterns, common pitfalls, and practical diagrams to guide your journey.
GitOps: Monorepo vs Polyrepo - A Practical Comparison
A straightforward comparison of monorepo and polyrepo approaches for GitOps implementations. Understand the advantages, disadvantages, and when to use each strategy for your infrastructure and application deployments.