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-connection-leak ▌

Operations Guides

Memcached curr_connections climbing: connection leaks and missing pooling

curr_connections trends upward with no corresponding traffic increase, edging toward the -c ceiling (default 1024). When it hits the limit, new client connections are refused. With default maxconns_fast, memcached closes them immediately and increments rejected_connections; with no_maxconns_fast, file-descriptor exhaustion can disable the listener and set accepting_conns to 0. To the application it looks like memcached is down. To memcached it is idle and healthy on the connections it already holds.

Most of the time this is not a memcached bug. It is a client-side problem: connections opened and never returned, a broken or absent pool, or a fleet of application instances each holding more sockets than you accounted for. The server is the victim, not the cause.

The reflex fix is “raise -c”. That buys runway but masks the leak, and it pushes you toward response_obj_oom once connection buffer memory becomes the constraint instead of slot count. The real work is deciding whether you have a leak (curr_connections grows, total_connections rate is normal) or churn (curr_connections is stable, total_connections rate is very high), then tracing it to the offending client.

What this means

Memcached has a hard connection limit set by -c (default 1024). A main listener thread accepts connections and hands them round-robin to worker threads (-t, default 4). With default maxconns_fast, accepted sockets at max_connections are rejected immediately and rejected_connections increments. With no_maxconns_fast, file-descriptor exhaustion can disable acceptance: listen_disabled_num increments, accepting_conns reads 0, and new connects are rejected. The cumulative duration is captured in time_in_listen_disabled_us.

The cliff is binary: below the limit everything works, at the limit new clients are denied with no graceful degradation. The useful window for diagnosis is the slope, not the cliff.

curr_connections is a gauge for open connections and has no fixed 3-to-5 internal baseline. Since 1.5.0, the stats output subtracts a single listener from the underlying connection count; additional listeners or Unix sockets can change the residual baseline. It also counts monitoring agents. Measure the idle baseline for your listener configuration and reserve capacity for agents.

Two distinct failure modes produce a “connections are a problem” symptom, and the remediation differs for each:

  • Leak. curr_connections grows monotonically. total_connections rate is normal or only mildly elevated. Sockets are opened and held, never closed. This is the dangerous one: it does not self-correct, and the only outcomes are hitting -c or restarting the offending clients.
  • Churn. curr_connections is roughly stable, but total_connections rate is very high. Clients connect, issue a request, disconnect, and repeat. curr_connections can look fine in a dashboard and then spike when churn outpaces TIME_WAIT reaping on the host.

Churn tends to show up as client-side TIME_WAIT exhaustion or as elevated total_connections rate rather than as a monotonic curr_connections rise.

flowchart TD
    A["curr_connections trending up"] --> B{"total_connections rate high?"}
    B -- No --> C["Leak: sockets held open"]
    B -- Yes --> D{"curr_connections stable?"}
    D -- Yes --> E["Churn: connect/disconnect cycling"]
    D -- No --> F["Leak + churn: investigate both"]
    C --> G["Per-client socket count via ss"]
    E --> H["Enable client-side pooling"]
    C --> I["Fix pool / close paths in app"]
    F --> G

Common causes

CauseWhat it looks likeFirst thing to check
Client connection leakcurr_connections climbs steadily; total_connections rate is modestPer-client socket count via ss -tnp grouped by peer IP
Missing or broken poolingcurr_connections tracks app instance count; every request opens a new sockettotal_connections rate vs cmd_get rate
-c too low for fleet sizecurr_connections plateaus near max; listen_disabled_num incrementscurr_connections / max_connections ratio
OS ulimit below -cConnections fail before max_connections; client-side errorsulimit -n for the memcached process
Idle connections held by long-lived workerscurr_connections stable but high; cmd_get rate modestPer-client connection count and per-client idle time
Monitoring and agent connectionscurr_connections includes monitoring clients; its listener baseline varies by listener configurationCount non-application sources in ss output

Quick checks

These are read-only and safe to run during an incident.

# Daemon responsiveness and version
echo "version" | nc -q1 localhost 11211

# Current vs max connections, accept state, and rejection counters
echo "stats" | nc -q1 localhost 11211 \
  | grep -E "STAT (curr_connections|max_connections|accepting_conns|listen_disabled_num|total_connections|rejected_connections|time_in_listen_disabled_us)"

# Two samples of total_connections to compute the new-connection rate
T0=$(echo "stats" | nc -q1 localhost 11211 | awk '/STAT total_connections/{print $3}'); sleep 10
T1=$(echo "stats" | nc -q1 localhost 11211 | awk '/STAT total_connections/{print $3}')
echo "new_conns_per_sec: $(( (T1 - T0) / 10 ))"

# OS file descriptor limit for the memcached process (must be >= max_connections)
PID=$(pgrep -x memcached); cat /proc/$PID/limits | grep "open files"

# Per-client connection count, ranked
# $5 is the peer address:port; -p adds local process names if run as root
ss -tnp | grep ":11211" | grep ESTAB | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -rn | head

# TIME_WAIT count on the memcached port (client-side churn indicator)
ss -tan state time-wait | grep ":11211" | wc -l

The ss -tnp peer IPs are visible without root. Root is needed for -p to resolve the local process name, which confirms the connections belong to memcached but is not required to identify offending clients.

How to diagnose it

  1. Confirm it is a leak, not churn. Sample total_connections twice over a 10 to 30 second window. If curr_connections is climbing but total_connections rate is low, sockets are being held open: a leak. If curr_connections is roughly flat but total_connections rate is high, clients are churning through connects. The two need different fixes.
  2. Compute runway. Use (max_connections - curr_connections) / new_connection_rate. If the leak adds 5 connections per minute and you have 200 slots free, you have 40 minutes. That tells you whether this is a “page now” or a “fix in the next deploy” problem.
  3. Find the offending client. Group established connections by peer IP. A single application host holding hundreds of sockets is the leak source. A broad, even distribution means the problem is fleet-wide pooling policy, not one bad instance.
  4. Check whether the OS fd limit is the real ceiling. cat /proc/$PID/limits | grep "open files" must be at least max_connections. If the kernel limit is lower than -c, the kernel wins and connections fail before memcached’s own counter trips.
  5. Check for server-side buffer pressure. If curr_connections is very high, watch response_obj_oom (since 1.6.0). Connection buffers are allocated outside the -m slab pool, and raising -c without considering process memory can trigger response object OOMs that close otherwise healthy connections.
  6. Rule out a server-side allocation problem. connection_structures is a cumulative count of connection structures allocated and is not decremented on close, so do not compare it directly with curr_connections. If the connection objects reported by stats conns disagree with the OS established-socket count, suspect an internal accounting problem; otherwise focus on the clients.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
curr_connections / max_connectionsPrimary gauge of slot pressureSustained above 0.7, or any monotonic climb
total_connections rateDistinguishes leak from churnHigh rate with flat curr_connections = churn
accepting_connsReal-time accept stateFlips to 0 the moment the limit is hit
listen_disabled_numCount of listener-disable transitionsAny increment means the limit was reached
time_in_listen_disabled_usCumulative time spent refusing connectionsIncreasing rate means sustained saturation
rejected_connectionsClients actively turned awayAny non-zero value in production
conn_yieldsPer-event fairness (-R, default 20)Sustained high rate means a client is pipelining aggressively
response_obj_oomConnection buffer memory exhaustionNon-zero when curr_connections is very high
OS ulimit -n for the processHard ceiling independent of -cLower than max_connections
Client-side TIME_WAIT countChurn indicator on the client hostThousands of TIME_WAIT sockets to port 11211

Fixes

Leaking client connections

A leak means sockets are opened and never closed. The memcached side cannot fix this. The work is in the application.

  • Identify the offending client from the ss grouping above.
  • Audit every code path that constructs a memcached client. Look for paths that create a client per request, per thread, or per loop iteration without a corresponding close or return-to-pool.
  • If the client library exposes pool metrics (max size, idle count, active count), check whether active count grows without bound under load. A correctly bounded pool should plateau, not climb.
  • Restarting the offending application instances reclaims the sockets immediately, but only buys time. Without a code or config fix the leak returns.

Restarting clients is disruptive and loses in-process state, but it is faster than waiting for a code deploy when you are hours from the limit.

Missing or disabled pooling

If every request opens a new TCP connection, total_connections rate is high and curr_connections may look stable until TIME_WAIT or ephemeral port exhaustion on the client causes a spike. This is churn, not a leak.

  • Enable persistent connections in the client library. Most memcached clients support a persistent connection mode or a built-in pool.
  • For PHP specifically, persistent connections only help if the PHP process survives between requests. With short-lived PHP-CGI or mod_php workers, “persistent” connections are effectively non-persistent because the process dies and takes the socket. PHP-FPM with persistent connection IDs is the working pattern.
  • Set an idle timeout on the pool so abandoned connections are reaped. Without one, a slow leak in pool accounting still accumulates.
  • Verify the pool size is bounded. A pool with no max is just a leak with extra steps.

-c too low for the fleet

The default 1024 is often too low for production. If you have 50 application instances each holding 30 persistent connections, you are already at 1500.

  • Raise -c. This requires a restart unless your deployment supports runtime reconfiguration.
  • Account for monitoring agents and the listener baseline measured on the actual deployment.
  • Keep curr_connections below 70% of max_connections as a planning target. The headroom absorbs reconnection storms after deploys and brief bursts.

Since 1.6.0, network buffers are on-demand: an idle client connection uses roughly 400-500 bytes instead of a fixed 10KB, while active requests allocate read and response buffers. Check read_buf_bytes and response_obj_bytes; raising -c to 50000 without considering process memory can still trigger response_obj_oom. Size the limit against actual peak persistent connection count plus headroom, not against a round number.

OS ulimit below -c

If /proc/$PID/limits shows an open-files limit lower than max_connections, the kernel enforces the lower number and connections fail before memcached’s own counter trips.

  • Raise the memcached process fd limit via systemd LimitNOFILE, an init script ulimit -n, or the orchestrator’s equivalent.
  • In containerized deployments, check the container runtime’s ulimit. Docker inherits a default that may be much lower than expected. A common workaround is --ulimit nofile=16384 on the docker run command.
  • The fd limit must cover max_connections plus listening sockets plus internal use.

Prevention

  • Alert on curr_connections / max_connections above 0.7. This is the warning band. The composite Connection Exhaustion page (accepting_conns = 0 sustained) is the emergency band.
  • Track total_connections as a rate, not just a counter. Churn shows up here before it shows up in curr_connections, and a sudden rate increase often precedes a deploy-induced reconnection storm.
  • Size -c against peak persistent connection count plus 30% headroom. Recompute whenever the application fleet scales horizontally.
  • Verify OS fd limits in the same runbook step as -c. The two ceilings must agree.
  • Instrument client-side pool metrics. Active, idle, and pending-acquire counts per pool tell you whether the problem is server pressure or client pressure before you touch memcached.
  • Watch response_obj_oom when running high connection counts. It is the signal that you raised -c past what the process memory can support.
  • Alert on any increment of rejected_connections or listen_disabled_num. Both mean a client was denied service.

How Netdata helps

  • Per-second curr_connections and max_connections ratio lets you see the slope, not just snapshots. The rate of climb tells you whether you have minutes or hours of runway.
  • total_connections rate as a derived metric separates leak from churn at a glance. A climbing curr_connections with a flat total_connections rate is the leak signature.
  • accepting_conns, listen_disabled_num, time_in_listen_disabled_us, and rejected_connections together form the connection exhaustion composite. Correlating them with cmd_get and cmd_set rates confirms whether saturation is traffic-driven or leak-driven.
  • ML anomaly detection on the curr_connections slope catches slow leaks that never trip a static threshold but still drain the slot pool over hours.
  • conn_yields and response_obj_oom surface the secondary effects of high connection counts: unfair pipelining and buffer memory exhaustion. These appear before accepting_conns flips.
  • Correlation with per-host TCP connection state (TIME_WAIT, ESTAB counts from the OS-level collector) localizes churn to specific client hosts without needing root on the memcached box.