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 / nats / nats-file-descriptor-exhaustion ▌

Operations Guides

NATS file descriptor exhaustion: too many open files and the ulimit cliff

Clients suddenly cannot connect. The server process is alive, CPU is fine, memory is fine, but every new connection fails and the logs are full of too many open files. Existing clients keep working, which makes it look like a network problem until you count sockets.

This is file descriptor exhaustion, and it is a cliff-edge failure. There is no graceful degradation: the moment the process hits its OS ulimit -n, accept() starts failing, JetStream cannot open new storage files, and cluster routes cannot establish. It is one of the most common NATS incidents, because the default ulimit -n of 1024 on Linux is far too low for a production message broker, while the default max_connections in NATS is 65536. The OS limit is the real ceiling, and it is usually the one nobody set.

What this means

Every TCP connection to a NATS server consumes one file descriptor. That includes client connections, cluster routes, gateway connections, and leaf node connections. On top of sockets, the server holds FDs for listener sockets, log files, and, if JetStream is enabled with file storage, message block files (.blk) and index files (.idx) on disk.

Two limits apply, and they are independent:

  • max_connections (default 65536) caps client connections at the NATS protocol level. Hitting it produces a clean protocol error: -ERR 'Maximum Connections Exceeded'.
  • ulimit -n caps all open files at the OS level. Hitting it produces syscall failures everywhere at once: accept, open, connect.

The nasty part is that routes, gateways, and leaf nodes consume FDs but are not counted against max_connections. Neither are JetStream storage files. So a server can be at 40% of its max_connections and still be pinned against the FD ceiling. With the default ulimit -n of 1024, the server exhausts FDs at roughly 1024 minus listeners, routes, and JetStream file handles, which is far below any max_connections value you would configure for production.

flowchart TD
  A[New connection or file open] --> B{FD available under ulimit -n?}
  B -->|yes| C[Normal operation]
  B -->|no| D[accept fails: too many open files]
  B -->|no| E[JetStream cannot open .blk or .idx files]
  B -->|no| F[Route or gateway connect fails]
  D --> G[New clients rejected, existing clients still work]
  E --> H[Stream writes fail mid-operation]
  F --> I[Cluster partition risk]

Common causes

CauseWhat it looks likeFirst thing to check
Default ulimit never raisedFD count pinned near 1024; server works fine until first real traffic spikecat /proc/$(pidof nats-server)/limits
ulimit set in the wrong placeulimit -n looks fine in an interactive shell but the nats-server process has a low limitCompare the process limit in /proc/PID/limits, not the shell
systemd unit without LimitNOFILE/etc/security/limits.conf edited but the service still has the defaultInspect the unit for LimitNOFILE=
Container runtime applies its own defaultHost limit is high, container process limit is lower than expectedCheck /proc/PID/limits of the containerized process
Connection leak or reconnect stormFD usage climbs steadily or spikes after a network eventCompare connections vs total_connections churn in /varz
JetStream file storage FD growthFD usage much higher than connection count suggestsCount non-socket FDs with lsof -p PID
Cluster topology FDs forgottenRoutes, gateways, leaf nodes push total over the edge/routez and /leafz counts plus FD total

Quick checks

All of these are read-only and safe to run during an incident.

# 1. Find the server PID and check its actual limits
pidof nats-server
cat /proc/$(pidof nats-server)/limits | grep -i "open files"

The Max open files line shows the soft and hard limits the process is actually running under. This is the number that matters, not what your login shell reports.

# 2. Count currently open FDs
ls /proc/$(pidof nats-server)/fd | wc -l

If this number equals or nearly equals the soft limit, the diagnosis is confirmed.

# 3. See what the FDs are: sockets vs files
lsof -p $(pidof nats-server) | awk 'NR>1 {print $5}' | sort | uniq -c | sort -rn

A high IPv4/IPv6/TCP count is connection-driven. A high REG count on a JetStream server points at storage files.

# 4. Check connection and topology counts from the server itself
curl -s http://localhost:8222/varz | jq '{connections, total_connections, max_connections}'

Compare connections plus route and leaf node counts against the FD count from step 2. The gap is JetStream files, listeners, and other handles. Active route and leaf node detail comes from /routez and /leafz; /varz also exposes aggregate routes and leafnodes counts.

curl -s http://localhost:8222/routez | jq '.num_routes'
curl -s http://localhost:8222/leafz | jq '.leafnodes'
# 5. Confirm the failure in the logs
grep -i "too many open files" /var/log/nats/nats-server.log | tail -20
# or, under systemd:
journalctl -u nats-server --since "1 hour ago" | grep -i "too many open files"

On a JetStream server you may see errors opening storage files, for example failing to open a stream’s msgs/*.idx file, alongside accept errors. That dual failure mode is the signature of FD exhaustion rather than a plain connection limit.

# 6. If systemd manages the service, check the unit
systemctl cat nats-server | grep -i LimitNOFILE

How to diagnose it

  1. Confirm the process limit, not the shell limit. Run check 1 above. ulimit -n in your SSH session reflects your PAM session, which is irrelevant to a daemon started by systemd. The only limit that matters is the one in /proc/<pid>/limits.

  2. Confirm you are at the ceiling. Compare open FD count (check 2) against the soft limit. FD exhaustion is unambiguous: the count is at the limit and the logs show too many open files. If the count is well below the limit, this is not your problem; look at NATS Maximum Connections Exceeded or NATS server not responding instead.

  3. Attribute the FDs. Use check 3 to split sockets from regular files. If sockets dominate and connections in /varz is high, this is connection volume: a leak, a reconnect storm, or genuine load. If regular files dominate on a JetStream server, storage files are the pressure and connection tuning alone will not save you.

  4. Identify connection churn. A stable connections value with a fast-growing total_connections counter means clients are connecting and disconnecting at a high rate. Each reconnect briefly holds an FD, and a storm after a network event can push a borderline server over the edge.

  5. Check the cluster surface area. In a full-mesh cluster of N servers each server holds N-1 route FDs, plus gateway and leaf node connections if configured. These are small numbers, but they are exactly the FDs you cannot afford to lose: when FDs run out, routes cannot re-establish and the cluster partitions on top of the client-facing failure.

  6. Decide whether the limit is wrong or the usage is wrong. If FD usage matches legitimate load, the limit is undersized and the fix is raising it. If usage is driven by a client leak or churn loop, raising the limit buys time but the leak wins eventually. Fix both, but size the limit for legitimate peak first.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
Open FD count (/proc/PID/fd)The actual resource being exhausted; no /varz field exposes thisCount above ~70% of the soft limit
Soft ulimit -n (/proc/PID/limits)The ceiling you are measuring againstAnything under 65536 in production
connections vs max_connectionsProtocol-level connection pressureAbove 85% of max_connections
total_connections delta (/varz)Connection churn; storms consume FDs in burstsHigh churn with stable connections
/routez and /leafz countsTopology FDs that do not count against max_connectionsRoute count below expected N-1 after an FD event
Server log accept errorsGround truth that the cliff has been hitAny too many open files entries
/healthz?js-server-only=true responsivenessThe monitoring endpoint itself needs an FD per requestHealth probe timing out while process is alive

During FD exhaustion the health endpoint can become unreachable even though the process is running, because accepting the HTTP connection also needs a descriptor. A health probe failure combined with live existing connections is a strong hint to check FDs before assuming a hung process. See NATS /healthz explained for the probe semantics.

Fixes

Raise the limit for the running deployment

The correct limit for a production NATS server is at least 65536, and a practical rule of thumb is more precise:

ulimit -n >= max_connections + (stream_count * ~10) + 256

The stream_count * ~10 term covers JetStream file storage handles per stream and is an estimate; the real number depends on storage configuration and block layout, so test under load and measure. The 256 covers listeners, log files, and miscellaneous handles. If the computed value is under 65536, use 65536 anyway.

systemd

/etc/security/limits.conf does not apply to systemd services; it only affects PAM login sessions. Set the limit in the unit or a drop-in:

# /etc/systemd/system/nats-server.service.d/fd-limit.conf
[Service]
LimitNOFILE=65536

Applying this requires a service restart, which is disruptive: in a cluster, do it as a rolling restart one node at a time and let routes re-establish between nodes.

systemctl daemon-reload
systemctl restart nats-server   # disruptive; roll through the cluster

Verify afterwards with /proc/$(pidof nats-server)/limits.

Docker

Containers get their nofile limit from the container runtime, not from the host’s ulimit -n or limits.conf. The runtime default depends on the engine, daemon configuration, and version; there is no single value you can assume matches the host. Set it explicitly per container:

docker run --ulimit nofile=65536:65536 ...

or the ulimits.nofile equivalent in Compose. Under Kubernetes, ulimit control depends on the runtime and is a common silent failure point: verify the running process limit from inside the pod rather than trusting the manifest.

Interactive or init-script deployments

ulimit -n 65536

set before launching the server, or via the init script. The soft limit cannot exceed the hard limit, and unprivileged users cannot raise hard limits above what is configured for them.

Reduce FD consumption

If usage is the problem rather than the limit:

  • Fix client connection leaks. Clients that open a new connection per operation instead of reusing one will outgrow any limit. Track them via /connz by source IP.
  • Dampen reconnect storms. Client libraries with aggressive, unsynchronized retry loops amplify a network blip into an FD-consuming storm. Jittered backoff on the client side is the fix.
  • Review JetStream stream count. Many small file-backed streams each hold storage FDs. Consolidating streams reduces the file-handle baseline; the actual per-stream handle count is implementation- and workload-dependent, so measure it on a representative server.

Prevention

  • Set the limit at provisioning time, not after the first incident. Every NATS deployment artifact (unit file, container spec, Helm values) should carry an explicit nofile limit of at least 65536. Never rely on OS defaults.
  • Alert on FD utilization, not just connection count. Track open FDs as a ratio of the soft limit and ticket above 70%. The degradation curve is cliff-edge, so the leading indicator is all you get.
  • Size the limit against the formula, then test under load. Load-test with realistic connection counts plus JetStream traffic and measure actual FD usage. Assumptions about per-stream file handles are where the formula and reality diverge.
  • Watch churn, not just levels. A fast-growing total_connections with flat connections is a leak or retry loop burning FDs in transit. Catch it before the level matters.
  • Include FD headroom in capacity reviews. When you raise max_connections, raise ulimit -n in the same change. Treating them as separate knobs is how this incident happens.

How Netdata helps

  • Netdata’s NATS collector polls /varz and charts connections against max_connections, plus total_connections, so connection pressure and churn are visible on one dashboard next to the process metrics that reveal FD pressure.
  • Because Netdata also collects per-process OS metrics, you can correlate NATS connection counts with the nats-server process’s open file descriptors on the same timeline, which is the correlation that confirms this diagnosis.
  • Per-second granularity catches reconnect storms: the total_connections rate spike after a network event is visible as it happens, not averaged away at a 60-second scrape.
  • Uptime and /healthz tracking lets you distinguish “server down” from “server alive but refusing connections,” which is the FD exhaustion signature.
  • Alerting on connection utilization ratios alongside OS-level FD alerts covers both ceilings, since either can be hit first.