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 / memcached / memcached-swap-usage ▌

Operations Guides

Memcached swapping: why any VmSwap on an in-memory cache is an incident

A nonzero VmSwap value in /proc/<pid>/status for a memcached process is a production incident, not a tuning concern. Every access to a swapped page costs milliseconds instead of nanoseconds, so a fraction of your cache lookups runs at disk speed. The point of an in-memory cache is lost for those items, and the resulting latency outliers are random and intermittent, almost impossible to trace from the application layer without checking swap first.

A value that looks small is still a real problem. 50 MB of swap on a process with a 2 GB cache means a measurable fraction of items is on disk. Operators dismiss the number as negligible and then spend hours chasing phantom latency spikes that only touch requests hitting swapped pages. The memcached project lists swap as the first item to check when investigating timeouts for exactly this reason.

The slab allocator manages memory pressure internally by evicting items within its -m budget. It does not rely on the OS swap subsystem. When the kernel pages out memcached memory, the host is under memory pressure that extends beyond memcached’s allocation. The fix is always at the system or container level, never inside memcached’s eviction or LRU configuration.

What this means

When VmSwap is nonzero for a memcached PID, some pages of the process address space are on disk: cached item data, hash table structures, connection buffers, thread stacks. Any GET touching a swapped page incurs a major page fault, blocking the worker thread until the kernel reads the page back from swap space.

The latency impact is severe and non-uniform. Most requests still hit in-RAM pages and return in under a millisecond. A subset stall for milliseconds or longer, depending on swap I/O contention. From the client, this looks like random latency outliers with no obvious pattern. p99 degrades while median latency stays flat, which makes the problem invisible to dashboards that track only averages.

Memcached exposes no swap metric in its own stats output. The server has no awareness that its memory is on disk. The only reliable signal is VmSwap from /proc/<pid>/status, read from the host.

flowchart TD
    A["Random latency spikes
on memcached"] --> B{"VmSwap nonzero?"} B -- No --> C["Investigate network,
CPU, slab evictions"] B -- Yes --> D["Swap confirmed.
Find the cause."] D --> E{"-k flag present?"} E -- No --> F["Missing mlockall.
Add -k on next start"] E -- Yes --> G{"Host RAM
oversubscribed?"} G -- Yes --> H["Free memory or
relocate instances"] G -- No --> I["Check container cgroup
swap limits"]

Note the documented scope: proc(5) defines VmSwap as the “amount of swap used by anonymous private data (shmem swap usage is not included)”. For a memcached process this is the relevant number — its heap is anonymous private memory — but shared-memory swap is out of scope for this counter. If symptoms persist with VmSwap showing zero, cross-check with /proc/<pid>/smaps_rollup and read the Swap field.

Common causes

CauseWhat it looks likeFirst thing to check
Missing -k / mlockallmemcached started without -k; swap appears under any host memory pressureps -p $(pgrep memcached) -o args= for the -k flag
Host memory overcommitmentTotal process memory exceeds physical RAM; kernel swaps least-recently-used pages, which may include memcachedfree -m and vmstat -w 1 for si / so columns
Noisy neighboursOther processes on the shared host spike memory; kernel reclaims pages from memcached`ps aux –sort=-%mem
Container without swap limitcgroup memory limit is set but no swap limit; process hits cgroup ceiling and spills to swapcgroup memory.swap.current or Docker inspect for --memory-swap

Quick checks

All commands below are read-only and safe to run in production.

# Check swap for the memcached process - must be zero
PID=$(pgrep memcached)
grep VmSwap /proc/$PID/status
# Check daemon responsiveness and rough latency under potential swap pressure
time (echo "version" | nc -w 2 localhost 11211)
# Check overall system swap usage
free -m
swapon --show
# Check for active swap-in / swap-out activity (si and so columns)
vmstat -w 1 5
# Check if -k (lock memory) is in the memcached process arguments
ps -p $(pgrep memcached) -o args=
# Check RLIMIT_MEMLOCK for the memcached process
prlimit --pid $(pgrep memcached) | grep MEMLOCK
# Check for OOM killer activity in kernel logs
dmesg -T | grep -i -E "oom|killed process"
# Check memcached uptime for recent restarts (OOM kill plus auto-restart cycle)
echo "stats" | nc -w 2 localhost 11211 | grep "STAT uptime"

pgrep memcached returns only one PID. If you run multiple memcached instances per host, iterate over the PID list explicitly (pgrep -a memcached) and check each VmSwap.

How to diagnose it

  1. Confirm the swap. Run grep VmSwap /proc/$(pgrep memcached)/status. If the value is nonzero, swap is confirmed and you are in an incident.

  2. Assess user impact. Check client-side latency if available. Look for p99 or p99.9 spikes that do not correlate with cmd_get rate changes or eviction storms. If client latency is not instrumented, run time (echo "version" | nc -w 2 localhost 11211) several times against a sub-millisecond baseline to catch intermittent stalls.

  3. Check for -k in the process arguments. Run ps -p $(pgrep memcached) -o args=. If -k is absent, memcached has no protection against swapping. This is the most common root cause.

  4. Check host memory pressure. Run free -m for available memory, and vmstat -w 1 5 watching the si and so columns. Sustained nonzero values mean the host is actively swapping, not just carrying stale swap pages from a past pressure event.

  5. Identify noisy neighbours. Run ps aux --sort=-%mem | head -20 to see top memory consumers. If memcached is not the top consumer, a co-located process is driving the pressure.

  6. Check for OOM killer activity. Run dmesg -T | grep -i oom. If the OOM killer has been active, the host has been under severe pressure. Memcached may have been killed and restarted. Check the uptime stat for discontinuities.

  7. If containerized, check the cgroup. Host free can look healthy while the container cgroup is constrained. A cgroup memory limit alone does not prevent swap. Check the cgroup memory and swap files directly, or inspect the container runtime configuration.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
VmSwap from /proc/<pid>/statusDirect measurement of swapped memcached pagesAny nonzero value is an incident
si / so from vmstatActive swap-in and swap-out at the host levelSustained nonzero rate
free -m available memoryHost-level memory headroomAvailable memory approaching zero
Client-observed p99 latencyThe user-visible symptom of swapped pagesp99 spikes while median stays flat
memcached uptime statOOM kill followed by auto-restartSudden drop from the previous check
OOM killer entries in dmesgKernel killed a process under pressureAny recent oom-kill or Killed process lines
rusage_system rateSystem CPU time; major page fault servicing adds to it, alongside any other kernel workUnexpected rise not correlated with request volume

Fixes

Missing -k flag: enable mlockall

Add -k (also --lock-memory) to the memcached startup command. This calls mlockall() to lock all current and future pages into RAM, preventing the kernel from swapping them out.

Two prerequisites must be met before -k will work:

  • Capability. The process needs root privileges or the CAP_IPC_LOCK capability. In systemd, use AmbientCapabilities=CAP_IPC_LOCK in the unit file. In Docker, add --cap-add=IPC_LOCK.

  • MEMLOCK rlimit. The kernel default RLIMIT_MEMLOCK is 8 MiB, and distribution, init, and container configurations vary between 64 KB and unlimited — all far below a production cache’s resident size. Check with prlimit --pid $(pgrep memcached) | grep MEMLOCK. Raise it before starting memcached. In systemd, set LimitMEMLOCK=infinity. In /etc/security/limits.conf, add a memlock line for the memcached user.

Tradeoff. With -k active, the kernel cannot reclaim memcached pages under pressure. If the host is oversubscribed, the kernel will swap other processes instead, including system daemons and the application itself. That can cascade into worse failures than the original swap problem. Use -k when the host is properly sized, not as a substitute for adequate RAM.

Host memory overcommitment: free RAM or relocate

If -k is already set and swap still appears, or if enabling -k pushes other critical processes into swap, the host does not have enough physical RAM for its workload.

Options, from least to most disruptive:

  • Move noisy neighbours off the host. If co-located processes spike memory, relocate them or schedule them on separate hosts.
  • Reduce memcached -m. If the cache allocation is too large for the host after OS overhead and co-located services, shrink it. This trades cache effectiveness for stability.
  • Add RAM to the host. The durable fix.
  • Disable swap on cache hosts. Running swapoff -a on a host that is actively swapping is destructive and can trigger immediate OOM kills. Only do this when the host has enough free RAM to absorb the swapped pages, or during a maintenance window after adding RAM.

Container without swap limit: constrain the cgroup

A cgroup memory limit alone does not prevent swap. The kernel will use swap when the container hits its memory limit unless you also set a swap limit.

Docker. Set --memory and --memory-swap to the same value. --memory-swap is the memory-plus-swap total, so --memory=2g --memory-swap=2g gives the container 2 GB of RAM and zero bytes of swap headroom. The Docker documentation states this directly: with both set to the same positive value, “the container doesn’t have access to swap”.

cgroup v2. Set memory.swap.max to 0 to disable swap for the cgroup. This is the direct swap limit, separate from memory.max.

cgroup v1. Set memory.memsw.limit_in_bytes equal to memory.limit_in_bytes. The memsw limit is the combined memory-plus-swap ceiling, so setting it equal to the memory limit leaves zero room for swap.

Prevention

  • Run with -k on properly sized hosts. This is the primary defense. Ensure RLIMIT_MEMLOCK and CAP_IPC_LOCK are configured before enabling it.
  • Monitor VmSwap continuously. It should always read zero for a memcached process. Alert on any nonzero value, no matter how small.
  • Size hosts with headroom. Budget for memcached -m, which already includes per-item metadata — each slab chunk carries the item header alongside key and value — but excludes the hash table, connection buffers, and thread stacks. Add those, plus OS memory and co-located processes, on top. The overhead varies with key length, value size, and connection count, so measure RSS against -m on your own workload rather than assuming a fixed percentage. Do not fill the host to capacity.
  • Avoid co-locating memcached with variable-memory workloads. Batch jobs, build agents, and JVM processes with large heaps are common drivers of pressure spikes that cascade into cache hosts.
  • Set container swap limits explicitly. Never assume that a memory limit prevents swap on its own.
  • Disable swap on dedicated cache hosts if the workload and host sizing allow it. This converts silent degradation into a hard OOM kill, which is easier to detect and alert on.

How Netdata helps

  • Per-process VmSwap tracking. Netdata’s apps plugin reads /proc/<pid>/status and surfaces VmSwap per process. A nonzero reading for memcached becomes visible immediately rather than at the end of a polling interval.
  • Correlation with memcached internals. Netdata’s memcached collector exposes uptime, cmd_get, cmd_set, hit ratio, eviction rate, and connection metrics alongside the OS-level swap data. A VmSwap increase coinciding with an uptime reset (OOM kill) or a hit ratio drop narrows the root cause in seconds.
  • System-wide pressure signals. Netdata tracks host swap usage, available memory, and swap-in/swap-out rates from kernel counters. When these rise alongside memcached swap, the problem is host-level overcommitment, not a memcached configuration issue.
  • Container cgroup visibility. In containerized deployments, Netdata surfaces cgroup memory and swap metrics directly, so you can see when a container has hit its memory limit and is spilling to swap without SSH access to the host.
  • ML-based anomaly detection. Swap-related latency spikes produce unusual patterns in memcached throughput and connection metrics. Netdata’s anomaly advisor flags these deviations before explicit thresholds are crossed.