Kubernetes

OOM Threshold & Memory Limit Calculator

Enter P99 observed memory and workload type to compute recommended memory request, limit, OOM kill threshold, and safe alerting threshold.

Calculations run locally in your browser

OOM Threshold & Memory Limit Calculator

The OOM Threshold Calculator computes safe memory request and limit from P99 usage with workload-type overhead, showing OOM kill threshold and alerting recommendations.

โ€ข Set memory limits that won't OOM kill during normal traffic spikes

โ€ข Calculate JVM heap size that fits within container memory limit

โ€ข Determine alerting threshold for memory usage before OOM kill risk

โ€ข Understand QoS class implications of request vs limit configuration

Uptime, incident, and on-call management. Better Stack provides status pages, incident management, and on-call scheduling for engineering teams.
View OOM events with Better Stack
External site ยท Independent provider ยท We may receive a commission ยท Not a recommendation
What does this tool tell you?
The OOM Threshold Calculator computes safe memory request and limit from P99 usage with workload-type overhead, showing OOM kill threshold and alerting recommendations.
What affects the result most?
OOM kill threshold: container is killed when memory usage exceeds memory limit. Working set vs RSS: Kubernetes uses working set (RSS + file cache) for eviction decisions. Eviction thresholds: kubelet evicts pods when node memory available < eviction threshold (default 100Mi).
How should I use the result?
The calculation is deterministic โ€” the same inputs always produce the same output โ€” so the most useful workflow is to vary one input at a time and see which factor moves the result most. That tells you where to focus your attention before committing to a decision.
OOM kills are expensive. Memory limits determine the tradeoff. The Cloud & Infra Analyzer models memory limits across your workloads โ€” finds the balance between waste and kill risk.
View memory limit optimization โ†’