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-how-it-works-in-production ▌

Operations Guides

How PHP-FPM actually works in production: a mental model for operators

PHP-FPM looks like a single service from the outside: a socket, a process, a stream of responses. Inside, it is a process-based concurrency system with a small number of moving parts, each of which fails in a specific, predictable way. Most production incidents trace back to a misunderstanding of one of those parts.

The single most important fact about PHP-FPM: each worker process handles exactly one request at a time. There is no in-process concurrency. Your maximum concurrent request capacity equals your number of active worker processes. Everything else in the system exists to feed, queue, recycle, or protect those workers.

What it is and why it matters

PHP-FPM (FastCGI Process Manager) is a master-worker process architecture. A single master process manages one or more pools of worker processes. Each pool has its own socket, its own worker limits, its own user context, and its own configuration. The master forks workers, reaps them when they die, maintains a shared-memory scoreboard of their state, and implements the process manager strategy that decides when to spawn or kill.

PHP itself is share-nothing and request-scoped. A worker boots the PHP runtime, executes one request, returns the response, and goes idle. There is no event loop, no async I/O, no thread pool inside the worker. When a worker blocks on a database query or an external API call, it blocks completely. It holds its slot and uses no CPU while it waits. This is why PHP-FPM can hit saturation with CPU at 10%: all workers are parked on I/O, none are computing, and there are no spare slots for new requests.

How it works

The request lifecycle

A request flows through PHP-FPM in the following stages:

  1. A web server (nginx, Apache, Caddy) receives an HTTP request that requires PHP processing.
  2. The web server opens a FastCGI connection to PHP-FPM via a Unix domain socket or a TCP socket.
  3. If an idle worker is blocked on accept(), it picks up the connection immediately. If all workers are busy, the connection waits in the kernel-managed socket backlog queue until a worker returns to accept().
  4. The worker initializes the PHP runtime for that request, executes the script, sends the response, and returns to idle (back to accept() on the shared listening socket).
  5. If pm.max_requests is set, the worker tracks its completed request count and self-terminates after finishing the current request and delivering the response. The master spawns a replacement.

A critical consequence of step 3: the master does not dispatch requests to workers. Workers call accept() on the shared listening socket themselves. The master is pure control plane; it manages worker lifecycle, not request routing.

The master process

The master does no per-request work. Its responsibilities are control-plane only:

  • Maintain the scoreboard: a shared memory segment tracking each worker’s state, PID, current request URI, and request duration.
  • Fork new workers and reap dead ones via SIGCHLD.
  • Implement the process manager strategy (static, dynamic, or ondemand).
  • Handle emergency restart: if too many children die from SIGSEGV or SIGBUS within a configured interval, the master calls execvp() on itself to fully restart. This is disabled by default (emergency_restart_threshold = 0).
  • Expose the status page and ping endpoint when configured via pm.status_path and ping.path.

Signal handling is specific and worth remembering: SIGUSR1 reopens logs only; SIGUSR2 is a graceful reload that re-reads config and replaces workers; SIGQUIT is a graceful stop; SIGTERM and SIGINT are immediate stops; SIGHUP is not handled and terminates the process.

A critical detail about SIGUSR2: unlike nginx, PHP-FPM does not spawn new workers before draining old ones. Old workers are drained first, then the master re-execs and spawns replacements. There is a brief window with reduced or zero worker capacity. Brief 502 errors and listen queue spikes during a reload are expected, not incidents.

The FastCGI socket and kernel listen backlog

Between the web server and the workers sits the socket backlog. This is a kernel-managed queue sized by listen.backlog in the pool configuration. When all workers are busy, new connections queue here. When the backlog is full, the kernel drops new connections with no notification to PHP-FPM. The web server sees connection refused or timeout and returns 502.

The backlog default changed across PHP versions. On Linux, PHP versions before 8.2 default to 511. PHP 8.2 and later default to -1, which maps to the kernel’s net.core.somaxconn (typically 4096 on modern Linux, historically 128). The kernel clamps the effective backlog to somaxconn regardless of what listen.backlog requests, so both values must be raised together. Raising listen.backlog alone does nothing if somaxconn is lower.

This queue is invisible to PHP-FPM’s own instrumentation. The status page reports current backlog depth, but it cannot report dropped connections. When the backlog overflows, the status page shows listen queue at its maximum and nothing more. Detecting drops requires kernel-level counters such as TcpExtListenOverflows in /proc/net/netstat:

# Cumulative listen socket overflows since boot
nstat -az TcpExtListenOverflows
# If nstat is unavailable, the raw counter lives in the TcpExt line of /proc/net/netstat

Process manager modes

The process manager decides how many workers exist at any time. Three modes are supported:

ModeBehaviorMonitoring implications
staticFixed number of workers, always running, set by pm.max_childrenPredictable memory. Active/idle ratio is the only variable. max children reached is always 0.
dynamicScales between pm.min_spare_servers and pm.max_children based on demandMost common mode. Monitor total process count for scaling behavior. max children reached counter is meaningful.
ondemandSpawns workers only when requests arrive, kills idle workers after pm.process_idle_timeoutZero workers at idle is normal. Cold-start latency on first request. max children reached counter is meaningful.

The scaling in dynamic mode is reactive, not predictive. The master checks spare server counts on a fixed one-second internal timer, then forks up to the spawn-rate limit in that pass. Under a sudden burst, this is slower than the traffic arriving. Static mode eliminates this latency at the cost of constant memory usage. Many experienced operators prefer static in production for exactly this reason.

The shared OPcache segment

OPcache is a single shared memory segment, allocated via mmap(MAP_SHARED), used by all workers under the same FPM master to cache compiled PHP bytecode. The default opcache.memory_consumption is 128 MB. Workers share the compiled bytecode pages, but tools like ps count those shared pages in each worker’s VmRSS (in the RssShmem component), which overstates unique memory usage by 30 to 50%. Use PSS via smem or /proc/<pid>/smaps_rollup for accurate per-process accounting:

# Accurate per-worker memory using proportional set size (PSS)
smem -P php-fpm -k
# Without smem: read PSS from smaps_rollup for any worker PID
awk '/^Pss:/{print $2}' /proc/$(pgrep -f 'php-fpm: pool' | head -1)/smaps_rollup

When OPcache fills up, PHP evicts cached scripts and recompiles them on the next request. This is a silent performance cliff: CPU spikes across all workers, latency increases uniformly, and nothing in the FPM status page shows it. The signal lives in opcache_get_status(), specifically the free_memory and wasted_memory fields in the memory_usage array.

The cumulative OOM restart count is exposed as opcache_get_status(false)['opcache_statistics']['oom_restarts']; restart_pending is a current-state flag, not a cumulative counter.

flowchart LR
    WS[Web server] -- FastCGI --> SQ[Socket backlog
kernel-managed] SQ -- accept --> W1[Worker 1] SQ -- accept --> W2[Worker 2] SQ -- accept --> Wn[Worker N] M[Master process] -. fork/reap .-> W1 M -. fork/reap .-> W2 M -. fork/reap .-> Wn W1 -- read/write --> OC[(OPcache
shared memory)] W2 -- read/write --> OC Wn -- read/write --> OC M -. scoreboard .-> SB[(Shared memory
scoreboard)]

The diagram shows the core data flow. Requests enter from the left and queue in the kernel backlog. Workers call accept() on the shared listening socket to pick up connections. The master manages worker lifecycle separately, fork/reaping workers and maintaining the scoreboard. Workers share the OPcache segment for compiled bytecode.

Where it shows up in production

The mental model predicts six characteristic failure archetypes.

  1. Worker exhaustion. All pm.max_children slots are occupied. New requests queue in the backlog. Once the backlog fills, connections are refused. Users see 502 or 504. The most common PHP-FPM failure mode.

  2. Slow request cascade. A subset of requests block on a slow backend (database, external API). Those workers hold slots for extended periods while using no CPU. Effective concurrency drops. Throughput collapses even though CPU is low. This is the most common cause of archetype 1.

  3. Memory leak spiral. Workers accumulate memory over time, especially when pm.max_requests is 0. Eventually the OOM killer fires, taking out workers or the master. Restarting fixes it temporarily, but it recurs. The default pm.max_requests of 0 (never recycle) is the enabling condition.

  4. Socket backlog overflow. Even with free workers, if the connection arrival rate exceeds the rate at which workers can accept, the kernel backlog fills. Rare in normal operation, but happens during SYN floods or massive bursts. Invisible to PHP-FPM; detectable only via kernel counters.

  5. Session lock serialization. With file-based sessions, concurrent requests from the same user block on flock(LOCK_EX) at session_start(). AJAX-heavy pages or parallel API calls from the same session ID serialize completely, appearing as slowness. The lock is exclusive, so even read-only session access blocks.

  6. Cold start penalty. After a restart or in ondemand mode, OPcache is empty. Every request compiles PHP from source, causing high CPU and slow responses until the cache warms. A full restart with simultaneous worker replacement turns a brief warmup into a throughput collapse if traffic is high.

Tradeoffs and common misuses

Static versus dynamic versus ondemand. Static wastes memory during idle periods but provides instant burst capacity and eliminates fork latency. Dynamic scales with demand but reacts too slowly for sharp bursts. Ondemand saves memory at idle but imposes cold-start latency on every traffic return. For most steady-traffic production workloads, static or a well-tuned dynamic pool with high pm.min_spare_servers outperforms ondemand.

pm.max_requests = 0. This is the default in many distributions. Workers never recycle, which allows memory leaks to accumulate without bound. Setting it to 500 or 1000 is near-zero cost (a fork every 500 requests adds negligible overhead) and provides a safety net against unbounded growth. The risk of leaving it at 0 is unjustifiable for any production deployment.

max_children based on CPU. The most common capacity mistake. PHP-FPM workers spend most of their time waiting on I/O, not computing. You can run 50 to 200 workers on a 4-core machine if memory allows. The binding constraint is memory: max_children = (available_RAM * 0.7 - OS_overhead) / avg_worker_RSS. Setting it based on CPU cores wastes capacity and invites premature exhaustion.

Listen backlog without somaxconn. Raising listen.backlog to 65535 does nothing if net.core.somaxconn remains at its default. The kernel clamps the effective backlog to the lower of the two. Both must be raised together. Note that changing listen.backlog requires recreating the socket, which means a full restart, not just a reload.

Ignoring OPcache in capacity planning. OPcache is shared memory, separate from per-worker RSS. It degrades performance across all workers simultaneously when it fills. Capacity math that accounts only for worker RSS misses this shared resource entirely.

Signals to watch in production

SignalWhy it mattersWarning sign
Active processes / max_childrenPrimary saturation ratio. When active equals max_children, the next request queues.Sustained above 80% during normal traffic.
Listen queue depthEarliest direct signal of user-facing degradation. Non-zero means requests are waiting.Any sustained non-zero value.
Idle processesHeadroom buffer. Near-zero means one burst away from queuing.Sustained near zero in dynamic or static mode.
Max children reached counterHow often the process manager wanted to spawn but could not. Meaningful only in dynamic and ondemand.Incrementing during normal traffic.
Per-worker RSSMemory leak detection. Growth between recycles indicates a leak.Monotonic increase over hours or days.
Slow requests counterApplication performance degradation. Requires request_slowlog_timeout to be set.Rate of change above baseline.
OPcache hit rateCache effectiveness. Below 99% after warmup means recompilation overhead.Below 95% sustained with uptime over 30 minutes.
OPcache free memoryCache saturation. When full, eviction and recompilation begin.Free memory below 10% of total.

How Netdata helps

Netdata’s PHP-FPM collector pulls the status page metrics at per-second resolution. PHP-FPM saturation events unfold in seconds, so coarser polling misses transient queue buildups and the first moments of a dependency-induced worker drain.

  • Active, idle, and total process counts are collected per pool, so multi-pool deployments show independent saturation rather than misleading aggregates.
  • Listen queue depth and the max children reached counter are tracked as both instantaneous values and rates of change, separating brief bursts from sustained saturation.
  • Per-worker RSS from the process table is correlated with FPM status metrics, so memory leak trends appear alongside worker count and saturation signals.
  • OPcache memory usage and hit rate are collected alongside FPM metrics, making the shared-cache failure mode visible without separate instrumentation.
  • Web server 502 and 504 rates from nginx or Apache logs correlate with FPM saturation, confirming whether queuing has reached user-visible errors.
  • ML anomaly detection flags unusual shifts in active worker ratios, listen queue depth, and OPcache hit rate without requiring static thresholds.