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-sizing-max-children ▌

Operations Guides

PHP-FPM sizing pm.max_children: by memory, not by CPU cores

pm.max_children is the hard ceiling on concurrent request processing in a PHP-FPM pool. Each worker handles exactly one request at a time. Once all workers are busy, new requests queue in the socket backlog. Once the backlog fills, the kernel drops connections and users see 502 errors.

The common sizing mistake is anchoring this number to CPU core count. Teams pick 4 workers for a 4-core box, or 8 for an 8-core box, and assume they have sized correctly. They have not. PHP-FPM workers spend most of their lifetime blocked on I/O: database queries, external API calls, filesystem reads, session locks. While a worker waits on a slow database response, it holds a process slot but uses essentially zero CPU. A 4-core machine can run 50 to 200 workers if memory allows.

The binding constraint is memory. This guide covers the correct memory-based formula, why naive RSS overstates per-worker cost, and the companion settings that keep the pool stable.

What it is and why it matters

pm.max_children is mandatory in every PHP-FPM pool configuration. It defines the maximum number of child processes the master may spawn, regardless of process manager mode (static, dynamic, or ondemand). It is the one number that directly bounds concurrent request capacity.

Getting it wrong in either direction has consequences:

  • Too low: workers exhaust during traffic bursts, requests queue, latency spikes, and the pool cannot absorb demand surges. You leave capacity on the table while RAM sits idle.
  • Too high: aggregate worker footprint exceeds available RAM. The kernel begins swapping, latency explodes because PHP’s memory access patterns are brutal under swap, and the OOM killer eventually fires, taking out workers or the master with no warning.

Memory degradation is a nonlinear cliff. Performance looks stable until swapping begins, then latency spikes dramatically, then the OOM killer strikes. There is no graceful middle ground. Sizing by memory, with a safety buffer, is the only way to stay off that cliff.

The memory-based sizing formula

The total memory consumed by all workers at peak concurrency must fit within the RAM budget allocated to PHP-FPM. That budget is not full system RAM. The OS needs page cache and buffers, and other services coexist on the host.

# Memory-safe max_children calculation
max_children = (total_RAM * 0.7 - co-located_overhead) / avg_worker_PSS

The 0.7 multiplier reserves 30% of total RAM for the OS page cache, buffers, and any co-located services. On a host with 8 GB of RAM, that leaves roughly 5.6 GB for PHP-FPM before subtracting explicit co-located overhead. On a host where PHP-FPM shares the machine with MySQL, Redis, and a web server, subtract their typical footprints from the 5.6 GB before dividing.

flowchart TD
    A[Total system RAM] --> B[Reserve 30% for OS and page cache]
    B --> C[RAM budget for PHP-FPM]
    C --> D[Measure avg per-worker memory]
    E[Use PSS not naive RSS] --> D
    D --> F[Divide budget by per-worker memory]
    F --> G[Result is memory-safe max_children]
    G --> H[Set pm.max_requests as leak defense]

A typical PHP application worker sits between 30 and 200 MB depending on framework weight, extensions, and request patterns. On a 4-core, 8 GB host with average worker PSS of 50 MB and 1 GB of co-located services:

# Worked example: 8GB host, 1GB co-located services, 50MB avg PSS
budget = (8192 * 0.7) - 1024 = 4710 MB
max_children = 4710 / 50 = 94 workers

Ninety-four workers on 4 cores. That is correct if the workload is I/O-bound, which most web PHP workloads are.

Measuring per-worker memory honestly (the RSS trap)

The most common error in this calculation is using naive RSS. ps and /proc/[pid]/status report VmRSS per process, but PHP-FPM workers are forked from the master and share a large read-only memory segment, most notably the OPcache shared memory. The kernel maps those shared pages once, but ps counts them in every worker’s RSS.

Naive RSS can overstate actual per-worker memory by 30 to 50%. A worker reporting 60 MB of RSS might have a PSS (Proportional Set Size) of only 35 MB once shared pages are divided proportionally.

Measure PSS instead. Two approaches:

# Average RSS of all workers (KB) - inflated by shared opcache pages
ps -eo pid,rss,cmd | grep '[p]hp-fpm' | grep -v master | awk '{sum+=$2; count++} END {print sum/count " KB avg"}'

# Accurate per-process memory (PSS - accounts for shared opcache)
smem -P php-fpm -c 'pid pss rss' -s pss

The smem output gives you both columns side by side. Use the PSS column for capacity math. If smem is not available, read /proc/[pid]/smaps_rollup and use the Pss field.

Second caveat: measure workers under realistic load, not idle workers. Workers grow as they handle requests and populate internal caches, autoloader state, and connection pools. A freshly forked worker looks small. The number you want is the steady-state average across workers that have served a few hundred requests.

Third caveat: if your application has a memory leak, the average trends upward over time. pm.max_requests is the defense (see below), but for sizing purposes measure after workers have hit their recycling point at least once so you capture the post-warmup footprint.

Where this shows up in production

Bare metal or VM, single pool. Measure PSS, apply the formula, verify against the 70% RAM budget.

Multiple pools. Each pool has its own pm.max_children and its own workers. The memory budget must be divided across all pools. A memory leak in one pool does not affect others, but they all compete for the same RAM. Size each pool independently, then sum the totals and confirm the aggregate stays within budget.

Containers (Docker, Kubernetes). The cgroup memory limit is the hard ceiling, not host RAM. PHP-FPM does not natively read cgroup limits. You must manually calculate pm.max_children from the container memory limit minus a buffer for the OS page cache and any sidecar processes. The OOM killer operates at the cgroup level and can kill the master process with no warning in the PHP-FPM logs. Monitor cgroup-level memory, not just host memory.

Shared host with MySQL, Redis, web server. The 0.7 multiplier assumes PHP-FPM is the dominant workload. If it shares the host, subtract the typical footprint of each co-tenant explicitly before dividing.

Dynamic mode under burst traffic. In pm = dynamic, the process manager scales workers between pm.min_spare_servers and pm.max_children based on demand. The scaling is reactive, not predictive. Under a sudden burst, the master forks workers as fast as it can, but if pm.max_children is set near the memory ceiling, a burst that spawns many workers at once can exhaust RAM before the master throttles. The memory budget must accommodate worst-case concurrency, not just average. Many operators prefer pm = static in production precisely because it fixes memory usage and eliminates the spawn spike at the cost of constant memory consumption.

Companion settings

Sizing pm.max_children correctly is necessary but not sufficient. Two related settings keep the pool from drifting into trouble.

pm.max_requests forces a worker to self-terminate after serving N requests, after finishing its current request and delivering the response. The master spawns a replacement. This is the primary defense against memory leaks in application code and extensions. A value of 500 to 1000 is typical. The default is 0, meaning unlimited: workers accumulate leaked memory without bound, RSS trends upward, and the OOM cliff approaches. Setting pm.max_requests is near-zero cost. Leaving it disabled is unjustifiable.

PHP memory_limit constrains per-request heap allocation, not cumulative worker RSS. A worker handling many requests can grow beyond memory_limit because extensions (ImageMagick, libxml, database drivers) allocate outside the PHP heap and are not bound by it. Do not treat memory_limit as a substitute for proper pm.max_children sizing. The relationship to watch: a high memory_limit combined with a high pm.max_children means each worker can balloon during a heavy request, pushing the aggregate closer to the ceiling. Size for the steady-state PSS, then verify that peak per-request allocation does not break the budget.

Signals to watch in production

SignalWhy it mattersWarning sign
Average per-worker PSSThe denominator in the sizing formulaUpward trend over days indicates a leak or growing baseline
Total FPM memory as % of available RAMThe aggregate that must stay under budgetExceeding the 70% budget means sizing is wrong or a leak is growing
active processes / max_children ratioConfirms the pool is using the capacity you provisionedSustained above 85% means demand is outgrowing capacity
max children reached counterIn dynamic/ondemand mode, counts times the PM wanted more workersIncrementing during normal traffic means the ceiling is too low
Swap usageFirst symptom of memory oversubscriptionAny sustained swap-in degrades PHP-FPM dramatically
OOM kill events in dmesgThe cliff has arrivedAny php-fpm OOM kill means sizing math is wrong or a leak accelerated
pm.max_requests configuredConfirms worker recycling is activeValue of 0 means no recycling, leak risk is unbounded

How Netdata helps

Netdata’s PHP-FPM collector pulls status page metrics at per-second resolution. Saturation events unfold in seconds, and slower polling misses transient queue buildups. For sizing work specifically:

  • Per-worker RSS and aggregate FPM memory appear alongside system RAM and swap, so you can watch the budget relationship and catch the moment PHP-FPM starts pressing the ceiling.
  • The active processes and idle processes counters let you confirm whether the pool is actually using the capacity you provisioned, or whether you over-allocated.
  • Anomaly detection flags upward drift in per-worker memory early, before a leak pushes the aggregate over budget and triggers the OOM cliff.
  • Container deployments get cgroup-level memory metrics correlated with FPM pool metrics, so you can size pm.max_children against the actual cgroup ceiling rather than host RAM.
  • The max children reached counter rate, combined with listen queue depth, tells you whether a given pm.max_children value is genuinely constraining throughput or comfortably absorbing traffic.