The only agent that thinks for itself

Autonomous Monitoring with self-learning AI built-in, operating independently across your entire stack.

Unlimited Metrics & Logs
Machine learning & MCP
5% CPU, 150MB RAM
3GB disk, >1 year retention
800+ integrations, zero config
Dashboards, alerts out of the box
> Discover Netdata Agents

Centralized metrics streaming and storage

Aggregate metrics from multiple agents into centralized Parent nodes for unified monitoring across your infrastructure.

Stream from unlimited agents
Long-term data retention
High availability clustering
Data replication & backup
Scalable architecture
Enterprise-grade security
> Learn about Parents

Fully managed cloud platform

Access your monitoring data from anywhere with our SaaS platform. No infrastructure to manage, automatic updates, and global availability.

Zero infrastructure management
99.9% uptime SLA
Global data centers
Automatic updates & patches
Enterprise SSO & RBAC
SOC2 & ISO certified
> Explore Netdata Cloud

Deploy Netdata Cloud in your infrastructure

Run the full Netdata Cloud platform on-premises for complete data sovereignty and compliance with your security policies.

Complete data sovereignty
Air-gapped deployment
Custom compliance controls
Private network integration
Dedicated support team
Kubernetes & Docker support
> Learn about Cloud On-Premises

Powerful, intuitive monitoring interface

Modern, responsive UI built for real-time troubleshooting with customizable dashboards and advanced visualization capabilities.

Real-time chart updates
Customizable dashboards
Dark & light themes
Advanced filtering & search
Responsive on all devices
Collaboration features
> Explore Netdata UI

Monitor on the go

Native iOS and Android apps bring full monitoring capabilities to your mobile device with real-time alerts and notifications.

iOS & Android apps
Push notifications
Touch-optimized interface
Offline data access
Biometric authentication
Widget support
> Download apps

The future of infrastructure observability

See our strategic direction across AI-native observability, full-stack signals, operational intelligence, and enterprise platform maturity.

AI-native observability
Full-stack signal coverage
Operational intelligence
Enterprise platform maturity
Agent releases every 6 weeks
Cloud continuous delivery
> Explore Product Roadmap

Best energy efficiency

True real-time per-second

100% automated zero config

Centralized observability

Multi-year retention

High availability built-in

Zero maintenance

Always up-to-date

Enterprise security

Complete data control

Air-gap ready

Compliance certified

Millisecond responsiveness

Infinite zoom & pan

Works on any device

Native performance

Instant alerts

Monitor anywhere

AI-native observability

Continuous delivery

Open source foundation

80% Faster Incident Resolution

AI-powered troubleshooting from detection, to root cause and blast radius identification, to reporting.

True Real-Time and Simple, even at Scale

Linearly and infinitely scalable full-stack observability, that can be deployed even mid-crisis.

90% Cost Reduction, Full Fidelity

Instead of centralizing the data, Netdata distributes the code, eliminating pipelines and complexity.

See and Map Your Entire Network

Live topology, flow analytics, and SNMP device and trap monitoring — unified with your full-stack observability.

Control Without Surrender

SOC 2 Type 2 certified with every metric kept on your infrastructure.

Integrations

800+ collectors and notification channels, auto-discovered and ready out of the box.

800+ data collectors
Auto-discovery & zero config
Cloud, infra, app protocols
Notifications out of the box
> Explore integrations
Real Results
46% Cost Reduction

Reduced monitoring costs by 46% while cutting staff overhead by 67%.

— Leonardo Antunez, Codyas

Zero Pipeline

No data shipping. No central storage costs. Query at the edge.

From Our Users
"Out-of-the-Box"

So many out-of-the-box features! I mostly don't have to develop anything.

— Simon Beginn, LANCOM Systems

No Query Language

Point-and-click troubleshooting. No PromQL, no LogQL, no learning curve.

Enterprise Ready
67% Less Staff, 46% Cost Cut

Enterprise efficiency without enterprise complexity—real ROI from day one.

— Leonardo Antunez, Codyas

SOC 2 Type 2 Certified

Zero data egress. Only metadata reaches the cloud. Your metrics stay on your infrastructure.

Full Coverage
800+ Collectors

Auto-discovered and configured. No manual setup required.

Any Notification Channel

Slack, PagerDuty, Teams, email, webhooks—all built-in.

Built for the People Who Get Paged

Because 3am alerts deserve instant answers, not hour-long hunts.

Every Industry Has Rules. We Master Them.

See how healthcare, finance, and government teams cut monitoring costs 90% while staying audit-ready.

Monitor Any Technology. Configure Nothing.

Install the agent. It already knows your stack.
From Our Users
"A Rare Unicorn"

Netdata gives more than you invest in it. A rare unicorn that obeys the Pareto rule.

— Eduard Porquet Mateu, TMB Barcelona

99% Downtime Reduction

Reduced website downtime by 99% and cloud bill by 30% using Netdata alerts.

— Falkland Islands Government

Real Savings
30% Cloud Cost Reduction

Optimized resource allocation based on Netdata alerts cut cloud spending by 30%.

— Falkland Islands Government

46% Cost Cut

Reduced monitoring staff by 67% while cutting operational costs by 46%.

— Codyas

Real Coverage
"Plugin for Everything"

Netdata has agent capacity or a plugin for everything, including Windows and Kubernetes.

— Eduard Porquet Mateu, TMB Barcelona

"Out-of-the-Box"

So many out-of-the-box features! I mostly don't have to develop anything.

— Simon Beginn, LANCOM Systems

Real Speed
Troubleshooting in 30 Seconds

From 2-3 minutes to 30 seconds—instant visibility into any node issue.

— Matthew Artist, Nodecraft

20% Downtime Reduction

20% less downtime and 40% budget optimization from out-of-the-box monitoring.

— Simon Beginn, LANCOM Systems

Pay per Node. Unlimited Everything Else.

One price per node. Unlimited metrics, logs, users, and retention. No per-GB surprises.

Free tier—forever
No metric limits or caps
Retention you control
Cancel anytime
> See pricing plans

What's Your Monitoring Really Costing You?

Most teams overpay by 40-60%. Let's find out why.

Expose hidden metric charges
Calculate tool consolidation
Customers report 30-67% savings
Results in under 60 seconds
> See what you're really paying

Your Infrastructure Is Unique. Let's Talk.

Because monitoring 10 nodes is different from monitoring 10,000.

On-prem & air-gapped deployment
Volume pricing & agreements
Architecture review for your scale
Compliance & security support
> Start a conversation

Monitoring That Sells Itself

Deploy in minutes. Impress clients in hours. Earn recurring revenue for years.

30-second live demos close deals
Zero config = zero support burden
Competitive margins & deal protection
Response in 48 hours
> Apply to partner

Per-Second Metrics at Homelab Prices

Same engine, same dashboards, same ML. Just priced for tinkerers.

Community: Free forever · 5 nodes · non-commercial
Homelab: $90/yr · unlimited nodes · fair usage
> Get the Homelab Plan

$1,000 Per Referral. Unlimited Referrals.

Your colleagues get 10% off. You get 10% commission. Everyone wins.

10% of subscriptions, up to $1,000 each
Track earnings inside Netdata Cloud
PayPal/Venmo payouts in 3-4 weeks
No caps, no complexity
> Get your referral link
Cost Proof
40% Budget Optimization

"Netdata's significant positive impact" — LANCOM Systems

Calculate Your Savings

Compare vs Datadog, Grafana, Dynatrace

Savings Proof
46% Cost Reduction

"Cut costs by 46%, staff by 67%" — Codyas

30% Cloud Bill Savings

"Reduced cloud bill by 30%" — Falkland Islands Gov

Enterprise Proof
"Better Than Combined Alternatives"

"Better observability with Netdata than combining other tools." — TMB Barcelona

Real Engineers, <24h Response

DPA, SLAs, on-prem, volume pricing

Why Partners Win
Demo Live Infrastructure

One command, 30 seconds, real data—no sandbox needed

Zero Tickets, High Margins

Auto-config + per-node pricing = predictable profit

Homelab Ready
Free Video Course

8-episode Netdata tutorial by LearnLinux.tv

76k+ GitHub Stars

3rd most starred monitoring project

Worth Recommending
Product That Delivers

Customers report 40-67% cost cuts, 99% downtime reduction

Zero Risk to Your Rep

Free tier lets them try before they buy

AI Support Assistant, Available 24/7

Nedi has access to all official documentation, source code, and resources. Ask any question about Netdata—responds in your language.

Deployment & configuration
Troubleshooting & sizing
Alerts & notifications
Evidence-based answers
> Ask Nedi now

Never Fight Fires Alone

Docs, community, and expert help—pick your path to resolution.

Learn.netdata.cloud docs
Discord, Forums, GitHub
Premium support available
> Get answers now

60 Seconds to First Dashboard

One command to install. Zero config. 850+ integrations documented.

Linux, Windows, K8s, Docker
Auto-discovers your stack
> Read our documentation

76,000+ Engineers Strong

615+ contributors. 1.5M daily downloads. One mission: simplify observability.

Per-Second. 90% Cheaper. Data Stays Home.

Side-by-side comparisons: costs, real-time granularity, and data sovereignty for every major tool.

See why teams switch from Datadog, Prometheus, Grafana, and more.

> Browse all comparisons
Edge-Native Observability, Born Open Source
Per-second visibility, ML on every metric, and data that never leaves your infrastructure.
Founded in 2016
615+ contributors worldwide
Remote-first, engineering-driven
Open source first
> Read our story
Promises We Publish—and Prove
12 principles backed by open code, independent validation, and measurable outcomes.
Open source, peer-reviewed
Zero config, instant value
Data sovereignty by design
Aligned pricing, no surprises
> See all 12 principles
Edge-Native, AI-Ready, 100% Open
76k+ stars. Full ML, AI, and automation—GPLv3+, not premium add-ons.
76,000+ GitHub stars
GPLv3+ licensed forever
ML on every metric, included
Zero vendor lock-in
> Explore our open source
Build Real-Time Observability for the World
Remote-first team shipping per-second monitoring with ML on every metric.
Remote-first, fully distributed
Open source (76k+ stars)
Challenging technical problems
Your code on millions of systems
> See open roles
Meet the Team Behind Netdata
Conferences, meetups, and tradeshows where you can see Netdata in action and talk to the engineers who build it.
Live demos and deep dives
Book 1-on-1 meetings
Talks and panel sessions
Event recaps and photos
> See all events
Talk to a Netdata Human in <24 Hours
Sales, partnerships, press, or professional services—real engineers, fast answers.
Discuss your observability needs
Pricing and volume discounts
Partnership opportunities
Media and press inquiries
> Book a conversation
Your Data. Your Rules.
On-prem data, cloud control plane, transparent terms.
Trust & Scale
76,000+ GitHub Stars

One of the most popular open-source monitoring projects

SOC 2 Type 2 Certified

Enterprise-grade security and compliance

Data Sovereignty

Your metrics stay on your infrastructure

Validated
University of Amsterdam

"Most energy-efficient monitoring solution" — ICSOC 2023, peer-reviewed

ADASTEC (Autonomous Driving)

"Doesn't miss alerts—mission-critical trust for safety software"

Community Stats
615+ Contributors

Global community improving monitoring for everyone

1.5M+ Downloads/Day

Trusted by teams worldwide

GPLv3+ Licensed

Free forever, fully open source agent

Why Join?
Remote-First

Work from anywhere, async-friendly culture

Impact at Scale

Your work helps millions of systems

Troubleshooting

Linux Cgroups V2 Memory Throttling & OOM Fix

A deep dive into memory.max- memory.high- and PSI to understand and prevent container out-of-memory events
by Netdata Team · September 5, 2025

Your critical service is lagging. Users are complaining about timeouts. You check your orchestration platform and see the dreaded OOMKilled status on a container. You dive into the node’s logs (dmesg) and confirm it: the kernel’s Out-of-Memory (OOM) killer has claimed another victim. The immediate fix is easy—restart the container, maybe give it more memory—but the real question remains unanswered: why did it happen? Was it a sudden memory leak, a traffic spike, or something more subtle?

With modern Linux distributions running on cgroups v2, the answer is often more nuanced than a simple memory limit breach. Cgroups v2 introduced a sophisticated, tiered system for memory management that can cause performance degradation and throttling long before the OOM killer is ever invoked. Understanding this system is the key to moving from reactive firefighting to proactive container memory optimisation.

TL;DR

  • An OOMKilled container is the final stage of memory pressure, but cgroups v2 throttles performance well before that, so the real diagnosis starts earlier than the kill log.
  • cgroups v2 governs memory through three gates: memory.low protects a cgroup from reclaim, memory.high throttles it with allocation stalls, and memory.max triggers the OOM killer.
  • You diagnose issues by reading the cgroup files directly, using memory.events counters for throttle and kill events and PSI in memory.pressure to measure how long tasks stalled waiting for memory.
  • Kubernetes maps these controls onto pods by QoS class, so watching memory.high events and non-zero PSI values lets you catch leaks and degradation before an outage.

From cgroups v1 To v2: A New Hierarchy For Memory Management

Control groups (cgroups) are a Linux kernel feature that limits, accounts for, and isolates the resource usage (CPU, memory, disk I/O, etc.) of a collection of processes. Container platforms like Docker and Kubernetes rely on them to enforce resource limits.

While cgroups v1 had a messy, controller-specific hierarchy, cgroups v2 introduced a single, unified hierarchy that simplifies management. For memory, this change was profound. Instead of a single, blunt memory.limit_in_bytes file, v2 introduced a set of controls that create a Memory Quality of Service (QoS) framework. These controls act as three distinct gates that a container’s memory usage must pass through.

The Three Gates Of cgroups v2 Memory Control

Imagine your container’s memory allocation as water flowing into a reservoir. Cgroups v2 sets up three watermarks that trigger different kernel behaviors.

Gate 1: memory.low - The Best-Effort Protection

This is a soft limit. It’s a “best-effort” protection boundary. When a cgroup’s memory usage is below this line, the kernel considers it protected and will try to reclaim memory from unprotected cgroups first.

  • Behavior: No throttling or killing. The kernel will avoid reclaiming memory from this cgroup unless absolutely necessary.
  • Use Case: This is primarily used by orchestrators like Kubernetes to protect pods with a Guaranteed QoS class. For these pods, Kubernetes sets memory.low equal to the memory request, ensuring they are the last to be affected during node-wide memory pressure.

Gate 2: memory.high - The Throttling Gate

This is the most critical control for performance troubleshooting. When a cgroup’s memory usage exceeds memory.high, the kernel starts to aggressively throttle the processes within that cgroup.

  • Behavior: The kernel will try to reclaim memory pages from the cgroup to push its usage back below the memory.high mark. This means that when a process inside the container tries to allocate more memory, its execution is paused while the kernel works to free up space. From the application’s perspective, this manifests as high latency, slowness, or even stalls.
  • Why it Matters: Your application can be performing poorly long before it is ever OOMKilled. If your service is slow but not crashing, it’s very likely hitting the memory.high throttle. This is the “slowness before death” phase that is often invisible without the right monitoring.

Gate 3: memory.max - The Hard Limit & The OOM Killer

This is the final, hard cap. It’s the point of no return.

  • Behavior: If a process inside the cgroup attempts to allocate memory that would push the group’s total usage over memory.max, the kernel’s OOM killer is invoked specifically for that cgroup. It will find a process within the cgroup to kill to free up memory. This is what directly results in the OOMKilled status.
  • Use Case: This sets the absolute boundary for your container’s memory usage, preventing a single leaky container from crashing the entire host node.

Your Troubleshooting Toolkit For Memory Issues

To diagnose these issues, you need to inspect the cgroup files directly on the host node.

Step 1: Find Your Container’s Cgroup

First, you need the path to your container’s cgroup directory. You can find this using the container ID. Once you have the container ID from a command like docker ps, you can locate its cgroup path. The path format is usually consistent, often found under /sys/fs/cgroup/, or you can use a tool like systemd-cgls to explore the hierarchy.

Step 2: Read The Signs In The memory.* Files

Once you’re in the cgroup directory, you can read the diagnostic files.

  • memory.current: Shows the current total memory usage. Compare this value to the limits set in memory.high and memory.max to see where you stand.
  • memory.stat: Provides detailed memory statistics. Key fields include:
    • anon: Anonymous memory (not backed by a file, like heap allocations).
    • file: Page cache (memory used to cache file data from disk). High file usage isn’t always bad, but it contributes to the total memory count.
    • slab: Kernel slab allocations on behalf of the cgroup.
  • memory.events: This is a crucial file for diagnostics. It contains counters for key events.
    • high: The number of times the cgroup’s usage has exceeded the memory.high limit. If this number is climbing, your application is being throttled.
    • max: The number of times the cgroup has hit the memory.max limit, triggering an OOM event.
    • oom: The number of processes OOM-killed within the cgroup.

Step 3: Use PSI (Pressure Stall Information) For Proactive Insight

PSI is a modern kernel feature that provides a much clearer view of resource contention. Instead of just showing event counts, it shows the percentage of wall-clock time that processes were stalled waiting for a resource.

For memory, check the memory.pressure file inside your cgroup directory. Inside this file, you will find metrics for some and full pressure, which provide averages over 10, 60, and 300 seconds, along with a running total.

  • some: This value represents the percentage of time where at least one task was stalled waiting for memory. A non-zero some value is a direct, quantitative measure of memory throttling.
  • full: This value represents the percentage of time where all tasks were stalled simultaneously. A non-zero full value indicates severe memory pressure and is a strong predictor of an imminent OOM kill.

The Kubernetes Context: QoS & Pod Eviction

Kubernetes automates the management of these cgroup controls based on the Quality of Service (QoS) class of your pods, which is determined by the requests and limits you set.

  • Guaranteed: requests == limits. The kubelet sets memory.low and memory.max to the same value. These pods are highly protected.
  • Burstable: requests < limits. The kubelet uses memory.low (based on requests) and memory.max (based on limits), with memory.high often set to the limit. These pods can use more memory than they requested but are candidates for throttling or killing if they exceed their request and the node is under pressure.
  • BestEffort: No requests or limits. These have the lowest priority and are the first to be killed during node-wide pressure.

The kubelet actively monitors these cgroup metrics and PSI. It can make a proactive pod memory eviction decision to kill a pod to preserve node stability, even before the kernel OOM killer is invoked. It uses this data to choose the best candidate for eviction—usually a BestEffort or Burstable pod exceeding its request.

By moving beyond simple OOM kill logs and embracing the rich diagnostic data provided by cgroups v2 and PSI, you can gain a deep understanding of your application’s memory behavior. Monitoring for memory.high events and non-zero PSI some values allows you to detect performance issues and potential memory leaks long before they result in a critical outage.

To make this advanced troubleshooting truly effective, you need a monitoring solution that can collect and visualize these metrics in real-time. Netdata provides per-second visibility into every cgroup v2 control file and PSI metric, automatically, turning complex kernel data into actionable dashboards. Get started with Netdata for free to stop guessing and start diagnosing your container memory issues with precision.

Diagnosing Linux cgroups FAQs

What Does OOMKilled Mean For A Container?

OOMKilled means the Linux kernel’s Out-of-Memory killer terminated a process inside your container to free memory. Under cgroups v2 it happens at a specific gate: when a process tries to allocate memory that would push the cgroup’s total usage past its memory.max hard limit, the kernel invokes the OOM killer scoped to that cgroup and kills a process within it. Your orchestrator then surfaces the OOMKilled status. It’s the final stage of memory pressure, and by the time you see it the container has usually been struggling for a while.

What Is The Difference Between cgroups v1 And v2 For Memory?

cgroups v1 used a messy, controller-specific hierarchy with a single blunt control, memory.limit_in_bytes. cgroups v2 replaced that with a unified hierarchy and a tiered Memory Quality of Service framework. Instead of one hard limit, v2 gives you three distinct gates, memory.low, memory.high, and memory.max, that trigger different kernel behaviors as usage climbs. That shift matters because v2 can throttle a container’s performance long before any hard limit is breached, which v1’s single limit couldn’t express.

What Are The Three Memory Gates In cgroups v2?

cgroups v2 sets three watermarks on a container’s memory. memory.low is a soft, best-effort protection boundary: below it, the kernel avoids reclaiming the cgroup’s memory unless absolutely necessary. memory.high is the throttling gate: cross it and the kernel aggressively reclaims pages and pauses allocations, which the app feels as latency or stalls. memory.max is the hard cap: exceed it and the cgroup’s OOM killer fires. Together they form a tiered system where performance degrades gradually before any container is killed.

What Is The Difference Between memory.high And memory.max?

They sit at different points on the memory curve. memory.high is a throttle: when usage crosses it, the kernel reclaims pages and pauses the container’s allocations to push usage back down, so the application slows but keeps running. memory.max is the hard ceiling: cross it and the kernel’s OOM killer terminates a process, producing the OOMKilled status. The practical takeaway is that memory.high causes the “slowness before death” phase, while memory.max causes the death itself.

How Do I Check Why A Container Was OOMKilled?

Inspect the cgroup files directly on the host node. First find the container’s cgroup directory under /sys/fs/cgroup/ using its container ID from docker ps, or explore the hierarchy with systemd-cgls. Then read the diagnostic files: memory.current for current usage against the limits, memory.stat for a breakdown of anonymous, page-cache, and slab memory, and memory.events for the counters that matter. In memory.events, a climbing high count means throttling, while max and oom counts confirm hard-limit hits and kills.

What Is PSI And How Does It Help Diagnose Memory Pressure?

PSI (Pressure Stall Information) is a kernel feature that reports the percentage of wall-clock time processes spent stalled waiting for a resource, rather than just raw event counts. For memory, read the memory.pressure file in the cgroup directory, which gives some and full metrics averaged over 10, 60, and 300 seconds. A non-zero some value means at least one task was stalled waiting for memory, a direct measure of throttling. A non-zero full value means all tasks stalled at once and is a strong predictor of an imminent OOM kill.

How Does Kubernetes Set cgroup Memory Limits By QoS Class?

The kubelet maps a pod’s requests and limits onto cgroup controls based on its QoS class. Guaranteed pods (requests equal to limits) get memory.low and memory.max set to the same value, making them highly protected. Burstable pods (requests below limits) get memory.low from the request and memory.max from the limit, with memory.high often set to the limit, so they can burst but risk throttling under pressure. BestEffort pods have no requests or limits and the lowest priority, so they’re killed first.

How Can I Detect Container Memory Problems Before An OOM Kill?

Stop waiting for the OOMKilled log and watch the earlier signals instead. Track the high counter in memory.events: if it’s climbing, your container is already being throttled at the memory.high gate. Watch PSI in memory.pressure, where a non-zero some value quantifies throttling and a rising full value warns of an imminent kill. Compare memory.current against the limits to see how much headroom is left. Monitoring these continuously catches performance degradation and potential leaks long before they become a crash.