How do you troubleshoot high memory usage causing OOMKilled events in production?

Hard Topic: Kubernetes May 24, 2026

When a container exceeds its memory limit, the kernel OOM killer terminates it and Kubernetes logs OOMKilled. Steps to resolve:

  1. Identify: kubectl describe pod <pod> — look for Reason: OOMKilled in Last State.
  2. Profile: Use kubectl top pod or Prometheus/Grafana to understand actual memory usage patterns.
  3. Fix: Either increase limits if the app genuinely needs more memory, or find and fix the memory leak in the application code.
  4. Prevent: Set up PrometheusRule or Datadog alerts to notify before a pod hits its limit.
← Previous What is a ConfigMap and when would you... Next → What is the purpose of a PodDisruptionBudget (PDB)...

Practice Similar Questions

Back to Kubernetes Topics