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-latency-high ▌

Operations Guides

Memcached latency high: diagnosing slow gets when the server exposes no latency metric

Memcached does not expose a latency histogram, p50, or p99. The standard stats output is all counters and gauges at the moment of query: no time-series, no distribution, no per-operation duration. If your application is reporting slow cache reads, the daemon itself cannot confirm or deny the problem. You must measure latency at the client, then use server-side and OS signals to localize the cause.

On a healthy LAN, memcached serves small-item gets in sub-millisecond time. Sustained p99 above a few milliseconds means something is wrong, and it is often not memcached itself. Network saturation, swap, a single saturated worker thread, hash table expansion, and large values are the usual server-side culprits. Client-side GC pauses, DNS resolution, and connection setup add their own latency on top.

The diagnostic split that matters first: latency spikes that appear simultaneously across all clients point to the server or the network. Spikes isolated to one client point to that client’s runtime, connection handling, or GC. Establish that distinction before chasing daemon counters.

What it means

“High memcached latency” is almost always a client-reported symptom. The daemon keeps incrementing cmd_get, get_hits, and bytes_written normally even while individual operations queue behind a saturated worker thread or a swapped page. The absence of a server-side latency signal is not a monitoring gap you can close with more stats polling; it is architectural. The integrated proxy can expose custom counters through its Lua interface, but the daemon protocol has no native per-route or percentile latency metric.

Your investigation has three layers:

  1. Client measurement. Histogram the actual round-trip time of get and set operations in the application or client library. Without this, you are guessing.
  2. Server-side saturation. CPU per worker thread, NIC bytes, swap, hash table expansion, connection queuing.
  3. OS and network. NIC ring drops, retransmits, swap, noisy neighbors, TCP keepalive killing idle connections.
flowchart TD
    A[Client reports high latency] --> B{Spike across all clients?}
    B -- Yes --> C[Server or network]
    B -- No, one client --> D[Client runtime]
    C --> C1[NIC saturation]
    C --> C2[Swap on memcached]
    C --> C3[Worker thread pegged]
    C --> C4[Large value responses]
    D --> D1[GC pauses]
    D --> D2[DNS or connection setup]
    D --> D3[Client retry storms]

Common causes

CauseWhat it looks likeFirst thing to check
NIC saturationbytes_written rate approaching link speed; latency rises uniformly across all clients and all operations; OS NIC counters show TX dropsip -s link show <iface>
Swap on the memcached processAny nonzero VmSwap; random latency spikes on items whose pages were swapped; often dismissed because “only a few MB”grep VmSwap /proc/$(pgrep -x memcached | head -1)/status
Single saturated worker threadAggregate CPU looks fine (e.g., 40% of 4 cores), but a fraction of connections see high latency; conn_yields climbingper-thread CPU; conn_yields rate
Hash table expansionhash_is_expanding = 1 during the spike; temporary memory and CPU overhead on the maintenance threadecho "stats" | nc localhost 11211 | grep hash_
Large value responsesbytes_written / cmd_get ratio well above historical average; multiget batches amplifyingstats items per-class; average item size trend
Connection queuingcurr_connections near -c limit; accepting_conns flipping to 0; clients retryingcurr_connections / max_connections ratio
Client GC / runtime pausesLatency spike on one client only; correlates with client GC or scheduling events, not server signalsclient-side runtime metrics
DNS resolution at clientSpikes correlated with DNS TTL refresh; clients connecting by hostnameclient DNS cache; switch to IP or local resolver

Quick checks

Run these read-only. None of them mutate cache state. Replace <iface> with the host’s memcached-facing interface; pick the correct PID if you run more than one daemon instance.

# Confirm the daemon is responsive at all
echo "version" | nc -w 2 localhost 11211

# Crude single-op latency probe (includes nc startup + connect; not a substitute for client histograms)
time (echo -e "get __latency_probe__\r" | nc -w 2 localhost 11211 > /dev/null)

# CPU consumed by the process (cumulative - sample twice for a rate)
echo "stats" | nc localhost 11211 | grep "STAT rusage_"

# Connection fairness: a climbing rate means a connection is being forced to yield
echo "stats" | nc localhost 11211 | grep "STAT conn_yields"

# Hash table expansion state
echo "stats" | nc localhost 11211 | grep -E "STAT hash_(is_expanding|power_level|bytes)"

# Network I/O volume
echo "stats" | nc localhost 11211 | grep -E "STAT bytes_(read|written)"

# Connection pressure
echo "stats" | nc localhost 11211 | grep -E "STAT (curr_connections|max_connections|accepting_conns)"

# Swap on the memcached process - must be zero
grep VmSwap /proc/$(pgrep -x memcached | head -1)/status

# OS-level NIC saturation and drops
ip -s link show <iface>

# Which clients hold the most connections (peer address:port is column 5; IPv6 peers parse differently)
ss -tn | grep ":11211" | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -rn

If VmSwap is nonzero, stop here. That is the incident. An in-memory cache with any data on disk is running at disk-speed access for the swapped regions, and no amount of daemon tuning will fix it.

How to diagnose it

  1. Confirm the latency is real and measured client-side. If you do not have client-side histograms yet, you are working from application timeouts or APM spans. Wrap the memcached client call with a timing histogram (OpenTelemetry, Micrometer, or a client library that exposes its own). Record operation type, target node, and percentile buckets down to 100us. Without this, you cannot distinguish a 2ms server problem from a 50ms client GC pause.

  2. Determine the blast radius. Pull latency percentiles per client instance and per target memcached node.

    • Spikes on every client hitting the same node: server or network on that node.
    • Spikes on one client across all nodes: that client’s runtime or network path.
    • Spikes on one client hitting one node: usually a hot key or a client-library issue on that path.
  3. Check swap first. VmSwap must be zero. Even a few MB causes random multi-millisecond spikes that look exactly like a server-side latency problem. If swap is present, the fix is host memory pressure, not memcached tuning. Lock memory with -k (which calls mlockall) where the capability allows it.

  4. Check NIC saturation. Compare bytes_written rate against link capacity. Above 70% sustained is concerning; above 85% produces latency spikes and packet loss. Cross-check with OS NIC counters: if the OS shows saturation but memcached bytes_written looks modest, another process on the host is using the NIC. Large values and multiget batches are the usual amplifier: one multiget for 100 keys at 10KB each is a 1MB response.

  5. Check for a single saturated worker thread. Memcached distributes connections round-robin across -t worker threads (default 4). Aggregate CPU can look fine while one thread is pegged and the connections assigned to it queue. conn_yields climbing means the -R fairness mechanism (default 20 requests per event) is actively throttling a connection that is sending large pipelines. If one client is dominating, reduce its batch sizes first, then consider raising -R.

  6. Check hash table expansion. hash_is_expanding = 1 is normal as the cache fills, but it runs on a background thread and competes for CPU. If expansion coincides with latency spikes and persists for minutes on a very large item count, it is a contributor. The hash table never shrinks, so once expansion completes it will not recur unless item count grows again.

  7. Check connection queuing. If curr_connections is near max_connections and accepting_conns has flipped to 0, new connections are being refused and existing clients are retrying, which manifests as latency and timeouts on the client even though the daemon is serving established connections.

  8. Check response buffer pressure. response_obj_oom, added in 1.6.0, counts connections closed because an internal response buffer could not be allocated. It is separate from item storage memory. Raising maxconns without enough memory for connection buffers can trigger this.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
Client-observed p50/p99 (external)The only true latency signal; the daemon provides nonep99 above 2ms on a LAN sustained
VmSwap for the memcached processAny swap turns an in-memory cache into a disk-speed cacheAny nonzero value
bytes_written rate vs NIC capacityLarge-value reads saturate the link before CPU or memorySustained above 70% of link speed
conn_yields rateOne client’s pipeline is starving othersSustained above 1% of total command rate
rusage_user + rusage_system rateAggregate CPU; compute per-thread for hot-thread detectionApproaching worker thread count capacity
hash_is_expandingBackground expansion competes for CPU and memoryPersisting more than a few minutes on large caches
curr_connections / max_connectionsQueuing begins near the limitRatio above 0.8 sustained
response_obj_oomResponse buffer exhaustion kills connectionsAny sustained nonzero rate
direct_reclaimsWorker threads doing eviction work the background thread should handleAny sustained nonzero rate

Fixes

Swap on the memcached process

This is a host memory problem, not a memcached problem. Free memory on the host or move co-located processes off. Lock memcached memory with -k (calls mlockall), which requires CAP_IPC_LOCK or root. Verify VmSwap returns to zero and stays there. Even small swap values are a production incident for a cache.

NIC saturation

Reduce value size: enable compression in the client library for large objects. Reduce multiget batch sizes. If the working set legitimately requires large values, spread the read load across more memcached instances or upgrade the NIC. Confirm the fix by watching bytes_written rate and OS NIC drop counters together.

Single saturated worker thread

If conn_yields is high and one client is dominating, reduce that client’s pipeline depth first. Raising -R lets a single connection send more requests per event loop iteration, which helps that client but can starve others, so tune conservatively. Increasing -t (worker threads) spreads connections across more threads. Default is 4; high thread counts can introduce lock contention, so test before raising significantly.

Hash table expansion

Expansion is a one-time cost as item count grows. If it is causing sustained latency on a very large cache, start with -o hashpower=N (12–32 in current releases) to avoid runtime expansion. Stay current: 1.5.14–1.6.13 had an integer overflow in hashsize calculation at hashpower 32, typically reached with several billion items; it caused a hang rather than runaway CPU. 1.6.14 fixes it, with no CVE or GitHub advisory assigned.

Large value responses

Check stats items for the slab classes holding the largest chunks and correlate with get_hits per class. If a small number of large values dominate bytes_written, compress them, split them, or move them out of memcached. The -I flag controls max item size (default 1MB).

Connection queuing

If curr_connections is at the limit, the real fix is client-side pooling, not just raising -c. Non-persistent connections create rapid churn and TIME_WAIT buildup. Raising -c also raises memory for connection buffers, which can trigger response_obj_oom if pushed too high without corresponding memory.

Client-side causes

If the blast radius is one client, look at its runtime. GC pauses, DNS resolution, and connection setup all add latency that has nothing to do with the daemon. TCP keepalive settings matter: if a load balancer or firewall kills idle connections, the next request on a dead connection fails and the client retries, which looks like latency. Client libraries should set keepalive and handle reconnection explicitly.

Prevention

  • Instrument client-side latency histograms before you need them. This is the single highest-leverage action. You cannot diagnose a latency incident without the data, and adding the instrumentation mid-incident biases the measurement.
  • Lock memory and monitor VmSwap. Treat any nonzero swap as a page-worthy incident for a cache host.
  • Track bytes_written against NIC capacity, not just as a counter. The ratio to cmd_get (average response size) is the leading indicator for large-value drift.
  • Watch conn_yields as an early signal of pipeline imbalance, before it becomes client-visible latency.
  • Keep the daemon on a current release. The 1.6.x line has fixed multiple crash and correctness bugs, including the hashsize overflow on very large caches (1.6.14) and the SASL password-database timing side channel (1.6.42, later assigned CVE-2026-47783).
  • Separate daemon health from client experience. A daemon with a good hit ratio and low CPU can still deliver bad latency if the NIC is saturated or the client is swapping.

How Netdata helps

Netdata surfaces the server-side and OS-level signals you need to localize a client-reported latency problem without polling stats by hand.

  • Per-second collection of rusage_user, rusage_system, bytes_read, bytes_written, conn_yields, curr_connections, and hash_is_expanding shows the second a saturation event begins and lets you correlate it with the client-reported latency spike.
  • Process-level memory and swap metrics for the memcached process surface a nonzero VmSwap immediately, which is the highest-priority cause to rule out.
  • NIC-level counters (drops, retransmits, TX/RX bytes) sit alongside bytes_written, so you can tell whether a latency spike is memcached or the network without switching tools.
  • Per-slab eviction and age signals distinguish a latency spike caused by direct reclaims and LRU maintainer fallback from one caused by network saturation.
  • Anomaly detection on the rate-of-change of conn_yields, bytes_written, and connection count can flag a single client’s pipeline imbalance or a large-value drift before it crosses an absolute threshold.

Client-side latency histograms remain something you instrument in the application or client library. Netdata gives you the server and OS half of the correlation.