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-worker-memory-sizing ▌

Operations Guides

PHP-FPM worker memory sizing: RSS, PSS, and honest capacity math

The standard PHP-FPM capacity formula is max_children = available_memory / average_worker_RSS. It shows up in every tuning guide, and it overcounts unique memory by a predictable margin. Forked PHP-FPM workers share a large block of read-only memory (OPcache bytecode, shared libraries, interned strings), and tools like ps count those shared pages in every worker’s RSS. Sum RSS across workers and divide, and you overcount by roughly 30 to 50 percent.

The downstream effect is a pm.max_children set too low for the box. You leave worker slots unused, hit max children reached earlier than necessary, then raise the limit using the same flawed math, this time without a model for how close to the OOM cliff you are.

What it is and why it matters

PHP-FPM is a fork-based master/worker model. The master initializes the PHP runtime once (loading extensions, reading php.ini, setting up OPcache), then calls fork() to produce workers. After fork, parent and child share the same physical pages until one side writes to them (copy-on-write). Read-only pages, the compiled bytecode in OPcache, the text segments of libc and PHP extensions, interned strings, stay shared for the worker’s lifetime.

OPcache uses a single mmap(MAP_SHARED) segment. The kernel allocates those physical pages once. Every worker maps that segment read-only to execute precompiled bytecode. This is the performance benefit of OPcache in a process model: compile once, share across workers.

The accounting problem: ps, /proc/<PID>/status VmRSS, and most monitoring agents report RSS per process. RSS includes shared pages in every process that maps them. A 64 MB OPcache segment plus tens of MB of shared libraries shows up in every worker’s RSS, even though the kernel only allocates those pages once. Summing ps RSS across N workers counts that shared block N times.

On a typical production PHP application with OPcache enabled, RSS-based capacity math overstates unique worker memory by 30 to 50 percent. The exact overcount depends on OPcache size, the shared library set, and the worker count, but the direction is consistent: RSS-based math is pessimistic.

How it works

Three memory metrics matter for capacity planning.

MetricWhat it countsGood for
RSS (Resident Set Size)All physical pages mapped by the process, including sharedLeak trending within a worker
PSS (Proportional Set Size)Private pages plus each shared page divided by the number of mapping processesHonest per-worker cost for capacity math
USS (Unique Set Size)Private pages onlyLower bound; ignores shared pages entirely

PSS answers “how much does one more worker cost.” It charges each worker only its fair share of the shared pages. When N workers map the OPcache segment, each worker’s PSS includes opcache_size / N rather than the full opcache_size.

The kernel exposes PSS through /proc/<PID>/smaps_rollup, a pre-summarized view available since Linux 4.14 (November 2017). The relevant fields are Pss, Pss_Anon, Pss_File, and Pss_Shmem, alongside Rss, Anonymous, and shared counters. The full /proc/<PID>/smaps file has per-VMA detail but is much more expensive to parse; smaps_rollup is the right interface for live capacity checks.

flowchart TD
  A["PHP-FPM master forks N workers"] --> B["Each worker maps OPcache + libs read-only"]
  B --> C["ps and VmRSS path"]
  B --> E["/proc/PID/smaps_rollup path"]
  C --> D["Shared pages counted in every worker
naive sum overcounts 30-50%"] E --> F["Shared pages divided by N
plus private pages = honest cost"] D --> G["max_children set too low
headroom unused"] F --> H["Safe max_children from formula"]

Measuring PSS in production

The fastest single command is smem:

# Per-worker PSS, sorted to expose outliers (requires smem)
smem -P php-fpm -c 'pid pss rss' -s pss

Recent smem versions prefer /proc/<PID>/smaps_rollup when the running kernel exposes it and fall back to the per-VMA /proc/<PID>/smaps otherwise. Older distributions may use only the latter. On very large worker sets, prefer the direct smaps_rollup loop if you need the cheapest point-in-time measurement.

If smem is not available, read smaps_rollup directly. Average PSS across all workers in MB:

# Average PSS across all FPM workers in MB, excluding the master
for pid in $(pgrep -f 'php-fpm: pool'); do
  awk '/^Pss:/ {sum+=$2} END {print sum/1024}' /proc/$pid/smaps_rollup
done | awk '{total+=$1; n++} END {printf "Workers: %d, Avg PSS: %.1f MB\n", n, total/n}'

Compare to the RSS-based number:

# Average RSS of all workers in 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"}'

On a real production pool with OPcache enabled, the PSS average is typically 30 to 50 percent lower than the RSS average. A worker showing 60 MB RSS may report a PSS of 35 MB once OPcache and shared libraries are apportioned.

Where the shared bytes come from

The dominant contributors to the shared block:

  • OPcache bytecode segment, sized by opcache.memory_consumption (upstream default 128 MB). Compiled script bytecode lives here, shared by every worker.
  • Interned strings buffer, sized by opcache.interned_strings_buffer (upstream default 8 MB).
  • Shared library text segments (libc, libxml, the database client library, image processing libraries).
  • PHP’s own binary text and read-only data.

All PHP-FPM pools on the same master share a single OPcache instance, so the PSS savings apply across pools, not just within one. Splitting traffic across multiple pools does not multiply OPcache memory.

Where it shows up in production

The RSS trap manifests in two opposite failure modes.

Conservative undersizing. You measure 80 MB average RSS, apply the formula (RAM * 0.7) / 80, get a modest max_children, and ship it. At peak traffic you hit max children reached with memory to spare. The box has headroom you are afraid to use.

Reactive overshooting. During a saturation event you raise max_children based on the same RSS math. Because the math is pessimistic, the new value is usually safe, but you have no model for how close to the cliff you are. The next time you raise it, or OPcache grows, or a slow leak accumulates, the OOM killer fires. See PHP-FPM workers OOM-killed for that failure chain.

Both modes share a root cause: the capacity formula uses a metric (RSS) that does not represent marginal cost. PSS does.

There is also a measurement timing trap. A freshly forked worker has low RSS and low PSS because it has not yet served a request. A worker that just served a large export or image transform has temporarily elevated memory. Sample under normal peak load, across the whole pool, and ignore workers still in warmup.

Tradeoffs and when to use it

PSS is the right metric for one job: capacity math. It is not the right metric for every job.

Use RSS for leak trending. PSS moves as workers are recycled and as the shared block shifts. A slow, monotonic climb in per-worker RSS between recycles is the classic leak signature. PSS dilutes that signal because the shared component is divided across the live worker count. Keep RSS in the leak-detection dashboard; use PSS in the capacity formula.

Re-measure after OPcache or codebase changes. OPcache size depends on the number and size of cached scripts. Adding a large framework, raising opcache.memory_consumption, or raising opcache.interned_strings_buffer changes the shared block and therefore the PSS/RSS ratio. Treat the PSS number as a value to re-measure whenever the codebase or OPcache configuration changes, not as a constant.

Reserve 30 percent of RAM for the OS. PHP-FPM’s total footprint (workers plus OPcache plus the master) should stay under 70 percent of system RAM. The remaining 30 percent is for the OS page cache (which PHP-FPM benefits from on every script, session, or upload read), buffers, and any other process on the host. In containers, apply the same fraction to the cgroup memory limit, not the host.

The formula

With PSS measured and the 30 percent reserve applied:

memory_safe_max_children = floor( (total_RAM * 0.7 - OS_overhead) / avg_worker_PSS )

Where:

  • total_RAM is the host RAM, or the cgroup memory.max in containers.
  • OS_overhead is a fixed estimate for the master process, other daemons, and system reserves. OPcache is already covered by the PSS sum, so do not add it to OS_overhead.
  • avg_worker_PSS is the average PSS measured under normal peak load, excluding warmup workers.

This gives the memory ceiling for pm.max_children. It is independent of CPU: PHP-FPM workers spend most of their time blocked on I/O, so the binding constraint on a typical app server is memory, not cores. CPU only becomes the limit when workers are genuinely computing (heavy framework boot, OPcache thrash, image processing).

The memory ceiling is a maximum, not a recommendation. The actual pm.max_children should also leave worker headroom for the configured pm mode:

  • static: set pm.max_children to the memory ceiling for predictable memory and instant burst capacity. All workers are pre-forked and resident.
  • dynamic: set pm.max_children to the memory ceiling, then tune pm.start_servers, pm.min_spare_servers, and pm.max_spare_servers below it. The pool uses less memory at idle.
  • ondemand: set pm.max_children to the memory ceiling. Workers spawn on request and die after idle. Memory at idle is near zero; cold-start latency is the trade.

See the max_children reached guide for what to do when this ceiling is the thing you are hitting.

Interaction with pm.max_requests

pm.max_requests recycles workers after N requests. With leaks, RSS climbs between recycles and the PSS baseline drifts up as the pool’s average worker age increases. Size max_children against the steady-state PSS at the typical worker age, not against a freshly forked worker. If RSS climbs sharply between recycles, fix the leak first; see PHP-FPM memory leak.

Signals to watch in production

SignalWhy it mattersWarning sign
Per-worker RSS (trend)Leak signature that PSS dilutesMonotonic climb between recycles
Per-worker PSS (point-in-time)Honest per-worker cost for capacity mathPSS drifting up week over week after deploys
Total FPM footprint (PSS-summed)Validates the capacity formula against the boxApproaching 70 percent of RAM
System / cgroup available memoryThe actual cliff, including page cache pressureFirst swap activity, ever
OPcache memory usage and hit rateChanges the shared block and the PSS/RSS ratiooom_restarts > 0, hit rate under 99 percent when warm
max children reached rateConfirms the ceiling is the binding constraintCounter incrementing during normal traffic
pm.max_requests and worker ageDetermines which PSS point you measure againstWorkers running far past the configured recycle count

How Netdata helps

  • Per-process and per-cgroup memory metrics at per-second resolution let you watch both RSS (for leak trend) and box-level memory pressure side by side, without summing ps output by hand.
  • The PHP-FPM collector pulls the status page (active processes, idle processes, max children reached, listen queue) so capacity decisions correlate against actual saturation events rather than synthetic load tests.
  • ML-based anomaly detection on per-worker RSS and total FPM footprint catches the slow drift that precedes the OOM cliff, even when no static threshold has been crossed.
  • OPcache memory and hit-rate metrics are collected alongside FPM pool metrics, so changes to the shared block (and the resulting PSS shift) are visible in the same view as worker counts.
  • Composite alerts can correlate max children reached with available memory headroom, distinguishing “raise the ceiling” from “the box is full”.