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

$ guides / docker / docker-memory-usage-explained

Operations Guides

Docker memory usage explained: anonymous, file, slab, and what counts

You see a container using 1.2 GB of a 1.5 GB cgroup limit and assume it is about to explode. It might be fine. The raw cgroup total includes page cache the kernel can reclaim under pressure; docker stats subtracts inactive file cache. Meanwhile, a different container reports 600 MB with no limit set, yet its anonymous memory grows 50 MB per hour and will force a host-level OOM kill before lunch.

This guide explains how Docker accounts for container memory through the Linux cgroup memory controller. You will learn what anonymous, file-backed, and slab memory are, where the numbers come from in cgroup v1 and v2, and which metrics actually predict OOM kills.

What this means

Docker does not allocate memory for containers. The Linux kernel charges every page of RAM to the container’s cgroup, and Docker reads those counters back through the cgroup filesystem. The raw cgroup counter is the total charge, but docker stats presents a cache-adjusted number rather than that raw total. Read the raw counter when comparing against the cgroup limit, and read memory.stat when you need the reclaimable/non-reclaimable split.

In both cgroup v1 and v2, the canonical breakdown lives in memory.stat. The three fields that matter most are:

  • anon: anonymous pages. This is heap, stack, and anonymous mmap memory. The kernel cannot reclaim these unless swap is configured and available. This is the core memory your application actually needs.
  • file: file-backed pages. This is the page cache. When a container reads from disk, the kernel caches those pages in RAM. This memory is reclaimable without data loss. A high raw file value can look alarming, but inactive file cache is usually harmless.
  • slab: kernel slab allocations. These are kernel data structures charged to the cgroup, including caches for dentries, inodes, and other objects. Slab counts toward the cgroup limit. Much of it is reclaimable under pressure, but it still adds to the charge.

On cgroup v2 these fields are named anon, file, and slab. On cgroup v1 the equivalents are total_rss for anonymous memory and total_cache for file-backed memory; slab is not reported in memory.stat unless kernel memory accounting is enabled.

cgroup v1 paths are typically /sys/fs/cgroup/memory/docker/<container-id>/, with memory.usage_in_bytes as the total and memory.stat for the breakdown. cgroup v2 paths are typically /sys/fs/cgroup/system.slice/docker-<container-id>.scope/, with memory.current as the total and memory.stat for the breakdown. If your host uses a different cgroup driver, the exact directory names may differ.

docker stats reads the same cgroup files. On current Docker CLI releases, MEM USAGE is memory.usage_in_bytes - total_inactive_file (v1) or memory.current - inactive_file (v2); the LIMIT column maps to memory.limit_in_bytes or memory.max. The raw cgroup usage can still include active file pages and slab, so use memory.stat for pressure analysis. The OOM killer does not care how much page cache you hold. It cares whether the non-reclaimable charge exceeds the limit. In practice, that means anon plus slab and related kernel allocations are what you need to watch.

flowchart TD
    A[cgroup memory.current / memory.usage_in_bytes] --> B[anon]
    A --> C[file]
    A --> D[slab]
    B --> E[heap, stack, anonymous mmap]
    C --> F[page cache]
    D --> G[kernel objects]
    E --> H[non-reclaimable]
    G --> H
    F --> I[reclaimable under pressure]
    H --> J[OOM risk if near memory.max]

Common causes

CauseWhat it looks likeFirst thing to check
Page cache dominates usagedocker stats shows usage near the limit, but the application is idle or only reading filesmemory.stat file is much larger than anon
Slab accumulationTotal usage drifts up slowly without a matching workload increasememory.stat slab is a large fraction of total
Anonymous memory leakUsage climbs steadily and never plateausmemory.stat anon grows monotonically
Memory limit too tight for baselineanon plus slab sit consistently above 80% of the limitBaseline non-reclaimable usage vs memory.max
JVM or runtime overheadContainer OOMs even though the runtime heap looks smallRuntime native memory vs cgroup limit

Quick checks

Detect cgroup version. The paths and file names you read depend on it.

# Detect cgroup version
if [ -f /sys/fs/cgroup/cgroup.controllers ]; then echo "cgroup v2"; else echo "cgroup v1"; fi

Read total usage and limit (cgroup v2).

# Check total usage and limit for a container
CONTAINER_ID=$(docker inspect --format '{{.Id}}' <container_name>)
cat /sys/fs/cgroup/system.slice/docker-${CONTAINER_ID}.scope/memory.current
cat /sys/fs/cgroup/system.slice/docker-${CONTAINER_ID}.scope/memory.max

Read memory breakdown (cgroup v2).

# Check memory.stat breakdown
cat /sys/fs/cgroup/system.slice/docker-${CONTAINER_ID}.scope/memory.stat | grep -E "^(anon|file|slab|inactive_file) "

Read total usage and limit (cgroup v1).

# Check total usage and limit for a container
CONTAINER_ID=$(docker inspect --format '{{.Id}}' <container_name>)
cat /sys/fs/cgroup/memory/docker/${CONTAINER_ID}/memory.usage_in_bytes
cat /sys/fs/cgroup/memory/docker/${CONTAINER_ID}/memory.limit_in_bytes

Read memory breakdown (cgroup v1).

# Check memory.stat breakdown
cat /sys/fs/cgroup/memory/docker/${CONTAINER_ID}/memory.stat | grep -E "^(total_rss|total_cache|total_inactive_file) "

Quick view from Docker CLI.

# Live memory stats from docker
docker stats --no-stream --format "table {{.Name}}\t{{.MemUsage}}\t{{.MemPerc}}"

Check OOM kill history.

# Check if the container was OOM-killed and its exit code
docker inspect --format '{{.State.OOMKilled}} {{.State.ExitCode}}' <container_name>

Check raw cgroup OOM kill counter (cgroup v2).

cat /sys/fs/cgroup/system.slice/docker-${CONTAINER_ID}.scope/memory.events | grep oom_kill

Check raw cgroup OOM kill counter (cgroup v1).

cat /sys/fs/cgroup/memory/docker/${CONTAINER_ID}/memory.oom_control | grep oom_kill

Check host memory headroom when no container limit is set.

grep MemAvailable /proc/meminfo

How to diagnose it

  1. Determine cgroup version and locate the container’s cgroup. If /sys/fs/cgroup/memory exists, you are on v1. If /sys/fs/cgroup/cgroup.controllers exists, you are on v2. The container path differs, so use the correct files.

  2. Read the total usage and the limit. If the container has no limit, memory.max contains max or memory.limit_in_bytes contains a very large number. Without a limit, the container competes directly with the host and other containers.

  3. Read memory.stat and compare file to anon. If file makes up more than half of memory.current or memory.usage_in_bytes, the container is mostly holding page cache. This is reclaimable. The immediate OOM risk is low unless the host itself is under global memory pressure.

  4. Add anon and slab and treat this as your pressure baseline. If this baseline is above 80% of the limit, the container has almost no headroom for bursts. If it is at the limit, the next allocation triggers an OOM kill.

  5. Check for growth trends. Memory that rises continuously over hours with no corresponding traffic increase is a leak. Leaks almost always live in anon. Slab can grow temporarily but usually plateaus.

  6. Check for past OOM kills. docker inspect shows OOMKilled if PID 1 was killed. The cgroup memory.events (v2) or memory.oom_control (v1) shows the raw oom_kill counter, which also catches child process kills that Docker does not surface in inspect.

  7. Correlate with exit codes and restarts. Exit code 137 means SIGKILL. If OOMKilled is true, the kernel killed the container. If OOMKilled is false but the exit code is 137, something else sent SIGKILL.

  8. For language runtimes like the JVM, compare cgroup limits to runtime flags. If -Xmx is set equal to the container limit, there is no room for metaspace, thread stacks, or native memory. The container will OOM even when the heap looks healthy.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
cgroup memory.current or memory.usage_in_bytesRaw total charge for limit math; docker stats reports a cache-adjusted usageSustained >80% of limit
memory.stat anonAnonymous pages: heap, stack, mmap. Non-reclaimable without swap.Steady growth or >60% of limit
memory.stat filePage cache. Reclaimable under pressure.High is normal; watch only if host is low on memory
memory.stat slabKernel slab charged to the cgroup.>20% of total usage
Container OOMKilledBoolean from Docker container state.Any true in production
cgroup oom_kill counterRaw kernel OOM kills for the cgroup.Nonzero increase
Host MemAvailable / MemTotalGlobal headroom for unlimited containers.Host MemAvailable < 20% of total
Exit code 137 + restart countPattern of OOM-induced crash loops.Restarts increasing with exit 137

Fixes

If the cause is page cache bloat

Usually no container-level fix is needed. The kernel reclaims page cache automatically when the host needs memory. If the host is under global pressure, add more RAM or reduce the number of file-heavy containers on the node. Do not raise the container memory limit just to accommodate cache.

If the cause is slab growth

Slab spikes often follow large numbers of file operations or socket creations. If slab stays high, check whether the application is creating millions of small files or connections. Spreading the workload or reducing object churn usually brings slab down.

If the cause is anonymous memory pressure

If anon is high but stable under load, the limit is too low. Raise memory.max or --memory to at least 120% of the observed baseline. If anon grows forever, the application has a leak. Increase the limit temporarily to stop crash loops, then profile the heap.

If the cause is runtime overhead

For the JVM, set -Xmx to roughly 75% of the container memory limit and cap metaspace and code cache explicitly. For Go, check for goroutine leaks that inflate stack memory. For Node.js, inspect the V8 heap and native addon usage.

If the cause is missing limits

Set a limit. Containers without a memory limit can consume all host RAM and trigger a system-wide OOM. The kernel may then kill dockerd, containerd, or other innocent containers.

Prevention

  • Monitor anon and slab, not just the total usage figure from docker stats.
  • Set memory limits based on load-test baselines of non-reclaimable memory, plus burst headroom.
  • Validate language runtime settings against cgroup limits before production deployment.
  • Alert on host MemAvailable when running containers without memory limits.
  • Review container restart counts and exit codes weekly. A restart count of 1 with exit code 137 is an OOM kill that already happened.

How Netdata helps

  • Netdata collects per-container cgroup memory metrics directly from memory.current and memory.stat, surfacing anon, file, and slab on separate dimensions.
  • Correlate anon growth with container restarts, exit codes, and OOM kill events on the same timeline.
  • Alert on memory usage as a percentage of limit while exposing the reclaimable vs non-reclaimable split, so you do not wake up for page cache.
  • Capture cgroup-level OOM events from memory.events without requiring dmesg access.
The Netdata solution

Docker monitoring with Netdata

Netdata auto-discovers every container and monitors Docker with per-second CPU, memory, disk, and network metrics plus ML anomaly detection. Catch disk exhaustion, OOM cascades, daemon hangs, and log explosions before they take the host down.