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-silent-process-degradation ▌

Operations Guides

Memcached alive but not responding: the silent process hang

The port check passes. The process shows up in ps. The kernel still accepts TCP on 11211. But every stats and version probe times out, and dashboards show cmd_get and cmd_set falling off a cliff. This is the silent process hang: memcached is effectively down while appearing alive to every shallow health check.

Most liveness checks stop at “is something listening on the port?” That question is answered by the kernel’s TCP stack, not by memcached’s worker threads. A frozen main thread, a stuck slab rebalancer, a process suspended by SIGSTOP, or an OOM kill in progress can all leave the listen backlog accepting connections while no command ever executes. Clients connect, send a command, and wait forever.

The detection fix is to require a command response, not a port response. Sustained failure of a version or stats probe over 30 to 60 seconds, combined with previously stable uptime, rules out transient blips and fresh restarts. This article walks through what to check first, how to tell the causes apart, and what to do once you confirm the process is hung.

What this means

Memcached’s listener thread accepts TCP connections and hands them round-robin to -t worker threads (default 4), each running its own libevent loop. The kernel’s TCP stack completes the three-way handshake for new connections as long as the listen backlog has room, even if no worker thread ever calls recv() on the new socket. A TCP port check answers “is the kernel accepting SYNs on this port?” rather than “is memcached processing commands?”

When the worker threads stop making forward progress, the symptoms cluster:

  • New connections succeed (kernel accepts them into the backlog).
  • Existing connections stop receiving responses.
  • cmd_get and cmd_set rates collapse toward zero because nothing is being processed.
  • Clients that give up and close leave the server side of those connections in CLOSE_WAIT, because memcached never finishes its side of the close.
  • CLOSE_WAIT accumulates toward max_connections, at which point listen_disabled_num increments and even new connection attempts start failing.

A plain port check is actively misleading here. It returns “open” right up until the connection limit is hit, then “closed” for an unrelated reason. Neither state reflects the real condition: the process is alive but not doing work.

flowchart TD
    A[Client TCP connect to :11211] --> B[Kernel accepts into backlog]
    B --> C[Client sends stats or version]
    C --> D{Worker thread reads?}
    D -->|No: thread deadlock| E[Probe times out]
    D -->|No: state T SIGSTOP| E
    D -->|No: state D uninterruptible IO| E
    D -->|No: pages swapped to disk| E
    D -->|No: OOM kill in progress| E
    D -->|Yes| F[Response returned]
    E --> G[cmd_get and cmd_set drop to near zero]
    G --> H[CLOSE_WAIT accumulates on server side]
    H --> I[curr_connections climbs toward max_connections]

Common causes

CauseWhat it looks likeFirst thing to check
Thread deadlock (slab rebalancer versus dispatcher)Process state R or S, low CPU, no swap, no OOM messages, but command probes time outThread states under /proc/<pid>/task/*/stat; recent slabs reassign or shutdown in command history
Process suspended (state T, SIGSTOP)ps STAT shows T, CPU at 0, no responses to any commandps -o stat; pending signals in /proc/<pid>/status; cgroup freezer; debugger or manual kill -STOP
Swap thrashing (memory not locked with -k)High si/so in vmstat, VmSwap greater than 0, high memory PSIVmSwap in /proc/<pid>/status; /proc/pressure/memory; system free memory
OOM killer mid-killdmesg shows oom-killer invocations targeting memcached; process may be in transitiondmesg -T | grep -i oom; system memory pressure

Historical note: upstream issue #446 reported the 1.5.6 TCP/CLOSE_WAIT symptom on an Ubuntu package; the maintainer suggested 1.5.x stability issues and suspected rare hash-expansion lock cases, but did not confirm a root cause or fix. A separate dispatcher/rebalancer deadlock after slabs reassign followed by shutdown was reported in issue #738; the maintainer treated it as rare and shutdown-only. Neither report supports a specific “fixed in” version, though both fit this symptom signature.

Quick checks

Run these before touching the process. All are read-only.

# 1. Probe command response with a hard timeout (not just a port check)
timeout 3 bash -c 'printf "version\r\n" | nc -w 2 localhost 11211'
# Expected on a healthy process: VERSION x.y.z
# Timeout or empty output = the hang signature

# 2. Check process state from ps
ps -o pid,stat,pcpu,pmem,etime,cmd -p $(pgrep -x memcached)
# STAT column: R=running, S=sleeping, T=stopped (SIGSTOP), D=uninterruptible sleep

# 3. Check swap and state from /proc
PID=$(pgrep -x memcached)
grep -E "^(State|VmRSS|VmSwap|VmSize)" /proc/$PID/status
# VmSwap must be 0. Any nonzero is a performance incident for an in-memory cache.

# 4. Look for OOM killer activity in the kernel ring buffer
sudo dmesg -T | grep -iE "oom|memcached" | tail -30

# 5. Check memory pressure (PSI, v4.20+ kernels)
cat /proc/pressure/memory 2>/dev/null || echo "PSI not available on this kernel"
free -m

# 6. Count CLOSE_WAIT connections on the memcached port
ss -tan '( sport = :11211 )' | awk 'NR>1{print $1}' | sort | uniq -c
# CLOSE_WAIT pile-up = clients gave up waiting; server side never closed

# 7. Snapshot all thread states
PID=$(pgrep -x memcached)
for t in /proc/$PID/task/*/stat; do
  awk '{print $1, $3}' "$t"
done | sort | uniq -c
# A cluster of threads all in the same non-R state suggests a lock or stall

# 8. Check pending signals (was SIGSTOP sent and not yet delivered?)
PID=$(pgrep -x memcached)
grep -E "^(SigPnd|ShdPnd|SigBlk|SigIgn|SigCgt)" /proc/$PID/status

How to diagnose it

Work through these in order. The goal is to identify the cause before restarting, because a blind restart destroys both the evidence and the cache.

  1. Confirm the hang with a command probe. Run the version probe from Quick check 1 at least three times over 30 to 60 seconds. A single timeout can be a transient blip. Sustained timeout with previously stable uptime is the real signal.

  2. Read the process state. If ps shows T, the process received SIGSTOP. Look for the source: a debugger attach, a cgroup freezer operation, or a manual kill -STOP. Check cgroup v2 freezer state at /sys/fs/cgroup/.../cgroup.freeze if applicable. If ps shows D, the process is stuck in an uninterruptible kernel sleep, usually IO. That points at swap thrashing or a filesystem issue (rare for memcached, which does no disk IO unless extstore is enabled).

  3. Check swap. VmSwap in /proc/<pid>/status must be zero for memcached. Any nonzero value means some cache pages are being served at disk speed, which can progress so slowly that the process appears hung. Cross-reference with vmstat 1 (watch the si and so columns) and /proc/pressure/memory if available. If memcached was started without -k (which calls mlockall), it is eligible for swapping.

  4. Check for OOM killer activity. dmesg -T | grep -i oom shows whether the kernel’s OOM killer targeted memcached. An OOM kill in progress can leave the process in a half-killed state where it still owns the port but is tearing down. This is brief but visible if you catch it in time.

  5. Inspect thread states. If the process state is R or S (running or sleeping normally) but command probes still time out, suspect a userspace deadlock. Snapshot all thread states from /proc/<pid>/task/*/stat. If all worker threads are stuck in the same state, that is consistent with lock contention or a deadlock. Capturing pid-targeted thread backtraces before restarting gives upstream maintainers the evidence they need. Note that gdb -p <pid> attaches via PTRACE_ATTACH, which pauses the target; on a process already suspected hung this is low risk, but on a live system it adds latency.

  6. Check the command history if you have it. A slabs reassign followed by shutdown is the reported reproduction path for the slab rebalancer versus dispatcher deadlock. If your automation or an operator issued those commands, that is likely the cause.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
Command probe (version or stats with timeout)The only reliable liveness signal; distinguishes “port open” from “commands processed”Sustained timeout over 30-60s with stable uptime
Process state (STAT column)Distinguishes suspended (T), uninterruptible (D), and running-but-stuck (R/S)T or D when commands time out
VmSwap from /proc/<pid>/statusAny swap for an in-memory cache is a latency catastropheGreater than 0
cmd_get, cmd_set ratesDrop confirms commands are not being processed, not just that monitoring lost connectivitySustained drop greater than 90% from baseline
curr_connections versus max_connectionsCLOSE_WAIT pile-up during a hang can push toward the connection limitSustained climb while commands time out
uptimeStable uptime rules out a fresh restart as the cause of low throughputShould be hours/days, not seconds
accepting_connsStays 1 during a hang because the kernel still accepts; misleading if used aloneDo not use as the sole liveness signal
Memory PSI (/proc/pressure/memory)Detects thrashing before total stall, on v4.20+ kernelsHigh full line avg10 or avg60
hash_is_expandingNormally brief; expansion runs in a background thread and should not block requestsPersists greater than 60s alongside command timeouts

Fixes

Grouped by cause. Do not restart as a first resort; you lose the cache and the diagnostic evidence.

Process suspended (state T)

Send SIGCONT to resume: kill -CONT <pid>. Then find what sent the SIGSTOP. Common sources are a stray debugger, a cgroup freezer operation, or a manual kill -STOP from an operator or automation. Check shell history, systemd unit files, and container orchestration for freezer hooks. If you cannot find the source, treat it as a security signal: an unauthorized process sent a stop signal.

Swap thrashing

If VmSwap is nonzero and the system is actively thrashing, the process may be making forward progress so slowly that it looks hung. Immediate mitigation is to relieve memory pressure on the host: stop other memory-heavy processes, or drop pagecache with echo 1 > /proc/sys/vm/drop_caches (brief IO stall expected; harmless to data but visible to anything doing buffered IO). Structural fix: ensure memcached starts with -k to call mlockall and lock its pages in RAM, and ensure the host has enough physical memory for memcached plus everything else running there. On kernels older than 4.20, swap thrashing can livelock without the OOM killer firing promptly, because allocations technically succeed via swap. PSI arrived in 4.20; OOM timing remains cgroup- and kernel-configuration-dependent, so absence of an OOM message is not proof that severe thrashing is absent.

OOM killer activity

If dmesg shows the OOM killer targeting memcached, the host is overcommitted. The process may already be dead or dying. Either way, reduce memory pressure: lower memcached’s -m, move other processes off the host, or add RAM. Restart memcached after the host has headroom. Prevent recurrence with monitoring on system memory and dmesg for OOM events, and consider -k plus CAP_IPC_LOCK to make memcached’s memory unswappable.

Thread deadlock

This is the rarest case and the one where a restart is usually unavoidable. Before restarting, capture thread backtraces if you can (gdb -p <pid> -batch -ex "thread apply all bt"), since the deadlock state is the evidence upstream needs. The attach pauses the target briefly. After restart, avoid the known trigger patterns: do not issue slabs reassign immediately followed by shutdown, and keep memcached on a current 1.6.x release. If the deadlock is reproducible, file an issue with the backtraces.

CLOSE_WAIT pile-up as a secondary effect

CLOSE_WAIT accumulation is a symptom, not a cause. Once you fix the underlying hang, existing CLOSE_WAIT connections close as memcached processes its side of the close. If they do not, let them time out or restart the process. Do not raise max_connections to work around CLOSE_WAIT pile-up; that just delays the wall.

Prevention

  • Alert on command probes, not port checks. A version or stats probe with a 2-3 second timeout, sustained over 30-60 seconds with stable uptime, is the only reliable liveness signal for this class of failure.
  • Run memcached with -k. Calls mlockall, prevents swap. Requires CAP_IPC_LOCK or root. Without it, swap thrashing is always a possible cause of “alive but not responding.”
  • Keep memcached on a current stable release. The reports above were never linked to confirmed fixed-in versions; current releases reduce exposure to accumulated fixes but do not make command probes optional. If you are on an older distro package, check the version first.
  • Monitor system memory and OOM events. dmesg OOM messages and host-level memory pressure are leading indicators. PSI (/proc/pressure/memory) on v4.20+ kernels gives early warning before thrashing stalls the process.
  • Avoid known deadlock triggers. Do not script slabs reassign followed by shutdown. If you need to restart after a slab rebalance, leave a gap.
  • Watch CLOSE_WAIT trends. A sudden CLOSE_WAIT increase on the memcached port is a strong secondary signal that clients are giving up on responses.

How Netdata helps

  • Per-second command probes with timeout. Netdata’s memcached collector issues stats probes at per-second resolution, so a sustained hang over 30-60 seconds shows as a flat line on the response chart, not a slow-burn miss.
  • Correlate process state with throughput. When cmd_get and cmd_set drop to near zero, overlay process CPU, RSS, and per-process VmSwap (collected from /proc) on the same timeline to see whether the drop coincides with a state change, a swap spike, or an OOM event without pivoting between tools.
  • VmSwap and PSI on the same dashboard. Netdata surfaces per-process VmSwap and system-level memory pressure (/proc/pressure/memory) alongside cache metrics, so swap-induced hangs are distinguishable from userspace deadlocks at a glance.
  • Anomaly detection on throughput. ML-based anomaly detection on cmd_get and cmd_set rates flags the collapse before threshold-based alerts fire, which matters when the hang is intermittent.
  • Connection-state visibility. Netdata’s TCP monitoring shows CLOSE_WAIT accumulation on the memcached port, giving the secondary signal that confirms clients are stuck waiting on responses.