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 / php-fpm / php-fpm-too-many-open-files ▌

Operations Guides

PHP-FPM "Too many open files": file descriptor exhaustion

The signature line in the PHP-FPM error log is:

ERROR: failed to prepare the stderr pipe: Too many open files (24)

The (24) is the C errno EMFILE: the calling process has hit its per-process open file descriptor limit. By the time this line appears, the master has already failed to fork a usable child, and application code has probably been failing intermittently for minutes beforehand with random connection refusals, unreadable files, and sessions that refuse to start.

Operators get stuck on this error because there are three independent layers of limits, and changing only one of them changes nothing. The OS ulimit -n, the systemd unit’s LimitNOFILE, and PHP-FPM’s own rlimit_files directive (global in php-fpm.conf for the master, and per-pool for the children) all apply. On any host where systemd starts PHP-FPM, /etc/security/limits.conf is silently ignored for the service.

What this means

Every PHP-FPM worker is a full process that holds file descriptors for: the FastCGI listen socket, the communication pipes back to the master, every PHP source file the autoloader has touched, persistent database and cache connections, session files, log streams, and any socket opened by application code or extensions. The default soft limit of 1024 open files per process is generous for a login shell and tight for a worker that fans out to a database, a cache, and a hundred framework includes per request.

There are two distinct exhaustion modes, and the error log only reports one of them:

  • Master exhaustion. The master process holds its end of the communication pipes for every child. With the default limit of 1024, a pool sized near pm.max_children = 500 consumes roughly 1000 FDs in the master alone (about two pipe ends per child), plus the listen socket and its own bookkeeping. When the master cannot allocate the stderr pipe for the next child, you get the error above and the pool stops growing.
  • Worker exhaustion. A single worker leaks or accumulates FDs and hits its own 1024 limit. The master never logs this directly. Application code sees fopen(), fsockopen(), session_start(), or PDO connection calls fail with “Too many open files” and the request returns a 500. The error appears in the application error log, not the FPM error log.

The first response to either mode is the same: check /proc/<pid>/limits and /proc/<pid>/fd, then decide whether the limit is just too low for the configured workload or whether something is leaking.

flowchart TD
    A["EMFILE in FPM error log"] --> B{"Error mentions
'stderr pipe'?"} B -- Yes --> M["Master hit its FD limit"] B -- No, app log only --> W["Worker hit its FD limit"] M --> C["cat /proc/master/limits
ls /proc/master/fd"] W --> C2["ls /proc/worker/fd
sampled over time"] C --> D{"FD count near limit
only under load?"} C2 --> D2{"FD count climbs
and never returns
to baseline?"} D -- Yes --> E["Raise limit:
LimitNOFILE + rlimit_files"] D2 -- Yes --> F["Leak suspected:
strace the worker"] F --> G["grep EMFILE or
open without close"]

Common causes

CauseWhat it looks likeFirst thing to check
Master FD limit too low for pm.max_children“failed to prepare the stderr pipe” appears as the pool scales toward max_children; clears when traffic dropscat /proc/<master_pid>/limits
systemd LimitNOFILE not raisedRaised rlimit_files but error persists, or vice versasystemctl show php-fpm -p LimitNOFILE
FD leak in an extension or in system() / proc_open() callsPer-worker FD count climbs monotonically and never returns to baseline between requestsls /proc/<worker_pid>/fd | wc -l sampled over time
Default 1024 limit with a fan-out workloadIntermittent EMFILE only during peak traffic, with no leak patternEffective limit from /proc/<pid>/limits

Quick checks

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

# Find the master and a sample worker PID
pgrep -af "php-fpm: master"
pgrep -af "php-fpm: pool"

# Show the actual soft and hard FD limits the process is running with
cat /proc/<master_pid>/limits | grep -i "open files"
cat /proc/<worker_pid>/limits | grep -i "open files"

# Count live FDs in each
ls /proc/<master_pid>/fd | wc -l
ls /proc/<worker_pid>/fd | wc -l

# List what the FDs actually are (sockets, pipes, regular files)
ls -l /proc/<worker_pid>/fd | tail -30

# Confirm what systemd applied to the service
systemctl show php-fpm -p LimitNOFILE -p LimitNOFILESoft

# Confirm what PHP-FPM thinks rlimit_files is (does not require a restart)
php-fpm -tt 2>&1 | grep -i rlimit_files

The two checks that matter most are /proc/<pid>/limits (what the kernel will actually enforce) and ls /proc/<pid>/fd | wc -l (how close you are). If rlimit_files in the pool config disagrees with /proc/<pid>/limits, the lower effective value wins, and the master applies rlimit_files to children at fork time.

How to diagnose it

  1. Identify which process is exhausted. If the error is in the FPM error log and mentions the stderr pipe, the master is the victim. If the error is only in the application log and mentions fopen, PDO, or session_start, a worker is the victim. Both can be true at once.

  2. Read the effective limits from /proc. Do not trust ulimit -n from your interactive shell; the shell does not share the service’s limits. cat /proc/<pid>/limits is the only source of truth for what the running process actually has.

  3. Check the FD count under load and at idle. A healthy worker’s FD count fluctuates with the request and returns to a low baseline between requests. A worker whose FD count only ever goes up is leaking.

  4. Decide: ceiling or leak. If FD count is well below the limit at idle and only spikes during traffic peaks, the limit is too low for the workload. If FD count creeps upward regardless of traffic, something is failing to close().

  5. Trace the leak if present. Attach strace to a single suspect worker. This briefly perturbs that worker, so attach to one, not all of them, and only in a controlled window:

    # Trace one worker and look for opens without matching closes
    strace -p <worker_pid> -f -e trace=openat,open,socket,close -o /tmp/fpm-fd.trace
    

    Then grep the trace for EMFILE returns and for openat or socket calls that have no corresponding close. A common pattern is an extension that opens a handle per request and only releases it on worker shutdown.

  6. Check the math against max_children. Multiply max_children by the number of FDs each child costs the master (roughly two for the communication pipes) and add the master’s own overhead. If that product is near the master’s limit, the master will hit the wall before the pool is full.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
Per-process open FD count (/proc/<pid>/fd)The direct leading indicator; the error log only fires after the limit is hitSustained upward trend in any single worker, or master FD count above 70% of its limit
Effective Max open files from /proc/<pid>/limitsConfirms which layer is actually bindingSoft limit still at 1024 after a config change, meaning the change did not take effect
pm.max_children vs master FD headroomThe master holds pipes per child; high max_children tightens the master’s budgetMaster FD usage scaling linearly with worker count
Worker exit and respawn rateA leak masked by pm.max_requests recycling shows up as elevated churnExits correlated with FD count returning to baseline
Web server 502 rateThe user-visible symptom once the pool cannot grow or workers fail internally502s rising alongside master FD saturation

Fixes

Raise the limit, in every layer that applies

The reliable order is:

  1. systemd unit override. On systemd hosts this is the authoritative source. Do not edit /etc/security/limits.conf; systemd does not read it for services. Use the override mechanism:

    # Open the override editor (creates the drop-in for you)
    systemctl edit php-fpm.service
    

    Add:

    [Service]
    LimitNOFILE=65536
    

    Then reload systemd and restart PHP-FPM:

    systemctl daemon-reload
    systemctl restart php-fpm.service
    

    The unit name varies by distro and PHP version: php-fpm.service on RHEL-family, php8.2-fpm.service (or similar) on Debian and Ubuntu. Adjust accordingly.

  2. PHP-FPM rlimit_files. Set the global directive in php-fpm.conf for the master, and the per-pool directive in each pool config for the children. If you omit the global one, the master keeps the systemd limit, which is usually fine. If you omit the per-pool one, children inherit the master’s limit.

    ; php-fpm.conf, [global] section
    rlimit_files = 65536
    
    ; pool config, e.g. /etc/php/8.2/fpm/pool.d/www.conf
    pm.max_children = 200
    rlimit_files = 65536
    
  3. Containers. Docker and other runtimes apply their own ulimit defaults at container start. Set the ulimit explicitly so the limit inside the container matches your intent:

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

    In Compose:

    services:
      php-fpm:
        ulimits:
          nofile:
            soft: 65536
            hard: 65536
    

    Docker does not publish one fixed cross-host nofile default: if no value is supplied, it inherits the daemon’s configured default ulimit. On hosts whose dockerd unit permits a very high limit, that can be on the order of 1048576. A few libraries iterate over the full FD range and slow down as a result. Pick an explicit, finite value and verify it from /proc/<pid>/limits.

After any change, verify with /proc/<pid>/limits. If the soft limit did not move, the change did not take effect. The most common reasons are forgetting systemctl daemon-reload, editing the wrong pool file, or the service being managed by a control panel (cPanel, Plesk) that regenerates configs and overwrites manual edits.

Cap the leak with pm.max_requests

If the FD count climbs without bound, raising the limit only delays the failure. The pragmatic mitigation is to recycle workers on a request budget so leaked FDs are released when the worker exits:

pm.max_requests = 500

This is the same defense used against memory leaks. It does not fix the leak; it bounds its blast radius. Pair it with the investigation in the diagnosis section so the root cause is found rather than papered over.

Address extension and call-site leaks

PHP Bug #76067 — with Bug #76802 filed as its duplicate — documents that workers calling system() expose inherited FDs, including the listening socket, to the spawned child process. It does not grow the worker’s own FD count by itself, but the child can retain those descriptors and keep resources alive. PHP classified it as a bug rather than a security vulnerability and fixed it in PHP 8.3.0. If the application shells out on the request path, inspect spawned children for inherited FDs and verify the PHP build is at least 8.3.0.

For application-level leaks, prefer proc_open() with explicitly controlled descriptors rather than system(), and ensure every fopen, fsockopen, and PDO handle is closed or goes out of scope before the request ends. Persistent connections (PDO ATTR_PERSISTENT, persistent Redis handles) intentionally hold FDs across requests; count them as part of the baseline, not as a leak.

Prevention

  • Set the FD limit deliberately at provisioning time, in the systemd unit or container spec. Inherited defaults are too low for FPM and silently ignored when wrong.
  • Size max_children against the master’s FD budget, not just memory. A 200-worker pool costs the master roughly 400 FDs in communication pipes before any request is served.
  • Monitor per-worker FD count. The error log is a trailing indicator; a slow upward trend is the leading sign of a leak.
  • Set pm.max_requests as a universal safety net, the same way you would for memory, to bound the impact of any leak you have not yet found.
  • Avoid system() on hot paths. Prefer proc_open() with explicit descriptors, or move the work out of the request path entirely.

How Netdata helps

  • Netdata collects per-process file descriptor counts at per-second resolution, so a slow FD leak in a single worker is visible as a climbing line long before the worker hits EMFILE.
  • The PHP-FPM collector surfaces active processes, idle processes, total processes, and the max children reached counter alongside per-process FD usage, so you can correlate a master FD spike with a pool scaling event toward max_children.
  • Correlating per-worker FD count with the web server’s 502 rate and FPM’s accepted connections rate distinguishes a master-side ceiling (502s rise as the pool fails to grow) from a worker-side leak (application 500s rise while the pool itself looks healthy).
  • Per-second resolution shows whether FD count returns to baseline between requests (healthy) or ratchets upward (leak), which is the single most important distinction for this class of problem.