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-limit-reached ▌

Operations Guides

Memcached connection limit reached: accepting_conns=0 and clients being refused

Memcached enforces a hard ceiling on concurrent client connections via the -c flag (default 1024). When curr_connections reaches that limit, the daemon flips accepting_conns to 0, disables the listen socket, and turns away every new TCP connection. Clients see connection-refused errors or timeouts, fall through to the backend, and the cache stops working for anyone not already connected.

This is purely a connection-slot problem. Memory can be at 40% of limit_maxbytes, CPU idle, evictions zero, and the process fully serving existing connections. The only thing wrong is that the connection table is full.

The definitive real-time signal is accepting_conns = 0. The cumulative counters listen_disabled_num, rejected_connections, and time_in_listen_disabled_us tell you how often and how long this has been happening. The fix is almost always one of: raise -c, raise the OS file-descriptor limit, or stop the client-side behavior leaking or churning connections.

What this means

Memcached uses a single listener thread that accepts connections and distributes them round-robin across worker threads (set by -t, default 4). Each connection occupies a file descriptor and a small amount of buffer memory outside the slab allocator. The -c flag caps how many connections the daemon will hold open at once.

When curr_connections hits max_connections, the listener disables the accept socket and accepting_conns flips to 0. No new TCP connections are accepted. listen_disabled_num increments on each transition into this state, and time_in_listen_disabled_us accumulates the total microseconds spent with the listener off.

Whether rejected clients are tracked in rejected_connections depends on maxconns_fast, available since 1.4.8 and enabled by default since 1.5.0. With maxconns_fast disabled (-o no_maxconns_fast), new connections queue in the OS backlog or are dropped, and rejected_connections is not reported. With maxconns_fast enabled, memcached explicitly accepts each surplus connection, writes an error response, closes it, and increments rejected_connections. If you monitor only rejected_connections and maxconns_fast is off, you miss the problem entirely. listen_disabled_num and accepting_conns are the reliable signals in both modes.

flowchart TD
    A[Clients open connections] --> B[curr_connections climbs]
    B --> C{curr_connections >= max_connections?}
    C -- no --> D[accepting_conns = 1 - normal]
    C -- yes --> E[accepting_conns = 0 - listener off]
    E --> F[listen_disabled_num increments]
    E --> G{maxconns_fast enabled?}
    G -- no --> H[new connections queue or drop]
    G -- yes --> I[accept, error, close - rejected_connections++]
    H --> J[clients see refused or timeout]
    I --> J
    J --> K[cache miss load hits backend]

From the client perspective, memcached looks down. The connection is refused or times out, so the application treats it as a cache failure and queries the database. If enough clients are refused simultaneously, the backend absorbs the full production read load and may saturate.

Common causes

CauseWhat it looks likeFirst thing to check
maxconns too lowcurr_connections pegged at max_connections with a low value like 1024stats settings for the configured maxconns
Connection leak in applicationcurr_connections climbs steadily and never drops, even at low traffictotal_connections rate vs curr_connections trend
Connection churn (no pooling)curr_connections near max with very high total_connections rateClient-side connection pool config
OS ulimit below maxconnsmemcached runs with fewer fds than -ccat /proc/<pid>/limits for Max open files
Monitoring agent consuming slotscurr_connections high but application traffic is lowss -tnp to identify connection sources

Quick checks

These are safe read-only commands. Run them against the memcached instance on its configured port (default 11211).

# Real-time accept state and connection counts
echo "stats" | nc -w 2 localhost 11211 | grep -E "STAT (accepting_conns|curr_connections|max_connections|listen_disabled_num|rejected_connections|total_connections)"

# Configured maxconns and whether maxconns_fast is active
echo "stats settings" | nc -w 2 localhost 11211 | grep -E "STAT (maxconns|maxconns_fast)"

# Cumulative time spent with listener disabled
echo "stats" | nc -w 2 localhost 11211 | grep "STAT time_in_listen_disabled_us"

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

# Connections to memcached by source IP, sorted by count
ss -tn | awk '$3 ~ /:11211$/ || $4 ~ /:11211$/ {split($4,a,":"); print a[1]}' | sort | uniq -c | sort -rn | head -20

# Connections in TIME_WAIT to the memcached port
ss -tn state time-wait | grep ":11211" | wc -l

Note: ss -tnp (with -p) requires root or CAP_NET_PTRACE to show process info.

How to diagnose it

  1. Confirm the server is at its connection limit. Check accepting_conns. If it is 0, the server is currently refusing new connections. If it is 1 but you saw a brief refusal, check listen_disabled_num and time_in_listen_disabled_us for recent increments. A nonzero listen_disabled_num means the limit was hit at least once since process start.

  2. Check the configured limit against actual usage. Pull max_connections from stats and compare to curr_connections. If curr_connections is at or within a few connections of max_connections, the limit is the bottleneck. Recent 1.6.x builds subtract the listener internally when reporting curr_connections, so do not assume a universal 3-to-5 internal baseline; verify actual clients with ss.

  3. Verify the OS file descriptor limit is not lower than maxconns. If the OS ulimit -n for the memcached process is lower than -c, the OS limit wins. The daemon may log a setrlimit warning at startup, or silently run with fewer available fds than configured. This is a common trap in containerized deployments.

  4. Distinguish churn from a leak. This is the critical diagnostic fork:

    • Leak: curr_connections climbs monotonically and never drops, even when traffic is low. total_connections also climbs but at a moderate rate. Something is opening connections and never closing them.
    • Churn: curr_connections is high but relatively stable, while total_connections increases very rapidly. Clients are opening and closing connections constantly without pooling. Closed sockets linger in TIME_WAIT for roughly 60 seconds (Linux default), consuming ephemeral ports and sometimes fd slots.
  5. Identify which clients hold the most connections. Use ss -tnp to see source IPs. If one application host or pod holds a disproportionate share, investigate its connection pool configuration. In Kubernetes or container environments, source IPs may be SNAT’d, so correlate with client-side metrics if possible.

  6. Check whether monitoring itself is a significant consumer. Each monitoring agent that connects to memcached consumes a connection slot. Multiple health checks, stats scrapers, or dashboards against the same instance add up. Account for them in capacity planning.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
accepting_connsReal-time boolean for whether the listener is onAny reading of 0 means active refusal
curr_connections / max_connectionsHeadroom on the connection tableRatio above 0.80 warning, above 0.95 critical
listen_disabled_numCounter of listener-disable transitionsAny increment since last check means the limit was hit
rejected_connectionsExplicit rejections under maxconns_fastAny increment means clients were turned away
time_in_listen_disabled_usCumulative duration of listener-off stateIncreasing rate means significant time spent refusing
total_connections rateConnection churn indicatorHigh rate relative to curr_connections means no pooling
OS ulimit -n for the processHard ceiling on file descriptorsLower than configured -c means the OS limit wins

For alerting, a composite rule avoids false positives better than any single threshold. Combine accepting_conns = 0, curr_connections / max_connections above a high threshold (for example 0.98), and a positive rate on rejected_connections or time_in_listen_disabled_us, sustained for several minutes. A sustained duration filters brief spikes from deploys, failover reconnection storms, and batch processing bursts that self-resolve in 1 to 2 minutes. Add a floor (for example max_connections > 50) to exclude tiny dev instances.

Fixes

maxconns is too low

The default -c 1024 is often insufficient for production. If your application fleet has grown beyond what the connection limit supports, raise it.

Changing -c requires a process restart. Memcached does not support changing the connection limit at runtime. Plan for a cold cache after restart.

When raising -c, also raise the OS file descriptor limit. Each connection consumes roughly 10KB of buffer memory outside the slab allocator, so 10,000 connections means about 100MB of non-cache memory. On very large connection counts (above 50,000), watch for response_obj_oom, which indicates the internal response buffer pool is undersized for the connection count.

Connection leak in the application

If curr_connections climbs steadily and never drops, a client is opening connections without closing them. This is a code-level fix in the application or its memcached client library.

Common sources: a new client object created per request without a destructor, a connection pool that grows under load but never shrinks, or a health check that opens a connection, runs a command, but does not close the socket.

Until the code is fixed, the only operational mitigation is to restart the leaking client process or periodically restart memcached. Restarting memcached loses all cached data and should be a last resort.

Connection churn with no pooling

If total_connections is climbing fast but curr_connections is relatively stable, clients are not reusing connections. Each request opens a new TCP connection, sends commands, and closes it. The closed socket enters TIME_WAIT for roughly 60 seconds, consuming ephemeral ports and potentially fd slots.

Fix this on the client side by enabling persistent connections or connection pooling in the memcached client library. Most mature client libraries support pooling. The application framework may need configuration to share a pool across requests or threads.

OS ulimit below maxconns

If memcached cannot raise its file descriptor limit to match -c, it runs with whatever the OS allows. Check cat /proc/<pid>/limits | grep "Max open files" for the actual limit.

For systemd-managed deployments, set LimitNOFILE in the service unit. For Docker, the official memcached image inherits the container runtime’s default, which can be as low as 1024. Use docker run --ulimit nofile=4096:4096 (or higher) to match your -c value. Verify after restart that the process limit matches expectations.

maxconns_fast considerations

If you rely on rejected_connections for alerting, make sure -o maxconns_fast is enabled. Without it, that counter stays at 0 even when connections are being refused. The tradeoff: with maxconns_fast, surplus connections are explicitly accepted, error-responded, and closed, which adds a small amount of per-rejection work. Without it, connections queue or are dropped by the kernel.

Most production deployments benefit from maxconns_fast because it gives clients a fast, explicit failure rather than a timeout. The client can immediately fall through to the backend or retry against a different node.

Prevention

  • Size maxconns for peak plus headroom. Track peak curr_connections over weeks. Set -c to at least 1.5x the peak, accounting for reconnection storms after deploys and failovers.
  • Monitor the ratio, not just the absolute count. Alert when curr_connections / max_connections exceeds 0.80 sustained. This gives lead time before the hard limit.
  • Account for monitoring connections. Every stats scraper, health check, and dashboard consumes a slot. Include them in capacity planning.
  • Verify the OS fd limit after every deployment change. Container orchestration, systemd unit updates, and base image changes can silently reset ulimits.
  • Enforce client-side connection pooling. This is the single most effective preventive measure. Without pooling, a modest traffic increase can exhaust connection slots through churn alone.
  • Watch for response_obj_oom on large maxconns values. If you push -c above 50,000, monitor response_obj_oom to ensure the internal buffer pool can keep up with the connection count.

How Netdata helps

Netdata collects memcached stats per second. For connection-limit incidents, per-second granularity matters because the transition from healthy to saturated can happen in seconds during a reconnection storm.

  • accepting_conns as a real-time dimension: per-second collection shows the exact moment the listener disables, not a 5-minute-averaged blur.
  • curr_connections vs max_connections on the same chart: the ratio is visible at a glance, and anomaly detection flags unusual connection growth patterns before the hard limit is reached.
  • Correlation with total_connections rate: Netdata can show churn (high total_connections rate, stable curr_connections) alongside the ratio, making the leak-vs-chorn diagnostic immediate.
  • Composite alerting: a connection-exhaustion alert can combine accepting_conns = 0, ratio thresholds, and sustained duration to filter transient spikes.
  • Cross-layer correlation: when clients fall through to the backend, Netdata can correlate the memcached connection-refusal window with backend database load, CPU, and latency on the same timeline.