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 / apache-httpd / apache-httpd-memory-leak-rss-growth ▌

Operations Guides

Apache per-child RSS climbing: the memory-leak slow death

Your Apache server has been up for three weeks. Nothing is erroring. Request rate is normal, latency is fine, the scoreboard looks healthy. But free memory keeps shrinking, swap usage is creeping up, and last night the OOM killer took out two httpd children. The parent respawned them, and the cycle started over.

This is the memory-leak slow death: a module loaded into Apache (most commonly mod_php, mod_perl, or a custom module) leaks a small amount of memory per request. Each child’s RSS grows monotonically over hours or days. Nothing looks broken until the system runs out of memory, the OOM killer starts shooting children, and the parent respawns fresh ones that also leak. You are now in a kill-and-respawn spiral.

The signal is not a sudden jump. It is a steady, per-PID upward trend in RSS. If you only watch total system memory or alert on absolute thresholds, you will not see it until the OOM kills start. This article covers how to confirm the pattern, find the leaking module, contain the damage, and fix it properly.

What this means

Apache children (on prefork especially, but also worker and event) are long-lived processes. With the default MaxConnectionsPerChild 0, a child handles requests forever. Every request allocates memory through the module pipeline and APR pools. Well-behaved modules return that memory when the request ends. A leaking module does not, or leaks into interpreter state (PHP, Perl) that survives across requests inside the same process.

There is a second, compounding behavior: Apache children generally do not return memory to the OS even when it is freed internally. Once a child’s allocator has grown the process to hold a big request, that high-water mark tends to stick. RSS ratchets upward and rarely comes back down.

The cascade:

flowchart TD
  A[Module leaks memory per request] --> B[Child RSS grows monotonically]
  B --> C[Total Apache RSS approaches RAM]
  C --> D[Page cache reclaimed, then swap]
  D --> E[OOM killer targets largest children]
  E --> F[Parent respawns fresh children]
  F --> B

MaxConnectionsPerChild 0 is almost always present when this pattern bites. A finite value recycles children periodically and bounds how large the leak can grow before the process is destroyed. The default is wrong for any deployment running mod_php or mod_perl.

One measurement caveat before you start: RSS overcounts. RSS includes shared library pages that are loaded once in physical RAM but counted against every child. Summing RSS across all children can exceed total RAM by a wide margin. For the true per-child cost, use PSS (Proportional Set Size) from /proc/<pid>/smaps_rollup. PSS divides shared pages among the processes sharing them.

Common causes

CauseWhat it looks likeFirst thing to check
Leaking application code under mod_phpRSS grows fastest on children serving PHP URLs; growth tracks request countCompare RSS growth of children handling PHP vs static URLs
Leaking mod_perl or custom C moduleSame monotonic growth, tied to specific handlers or vhostsCorrelate RSS growth with the URL patterns that child serves
MaxConnectionsPerChild 0 (the default)Any small leak becomes fatal because children never recycleGrep the config for the directive; unset means 0
Large request or response bodies bufferedIndividual children spike to 2x+ average RSS after specific requestsLook for the biggest-RSS child and what it serves
Vulnerable httpd version (known leak CVE)Growth tied to HTTP/2 traffic, not application URLsCheck httpd version against the security page

The last row matters: not every leak is your code. CVE-2023-45802 was an HTTP/2 stream reset memory leak fixed in 2.4.58; later mod_http2 memory issues were fixed in 2.4.67 (CVE-2026-23918, a double free on early HTTP/2 stream reset) and in 2.4.68 (CVE-2026-48913, memory corruption when file handles are exhausted, and CVE-2026-49975, excessive memory allocation from malicious requests). If you run HTTP/2 on an older 2.4.x and the growth correlates with HTTP/2 connections rather than application URLs, upgrading is the fix. See the Apache 2.4 vulnerabilities list at https://httpd.apache.org/security/vulnerabilities_24.html.

Quick checks

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

# Per-child RSS, biggest first (Debian uses apache2, RHEL uses httpd)
ps -C httpd -o pid,rss,vsz,cmd --sort=-rss 2>/dev/null || \
  ps -C apache2 -o pid,rss,vsz,cmd --sort=-rss

# Average and max child RSS
( ps -C httpd -o rss --no-headers 2>/dev/null || \
  ps -C apache2 -o rss --no-headers ) | \
  awk '{sum+=$1; count++; if($1>max)max=$1} END {print "Avg (KB):", sum/count, "Max (KB):", max, "Count:", count}'

# True per-child cost via PSS (kernel 4.14+; not present on RHEL 7's 3.10)
grep -E '^(Pss|Rss):' /proc/<pid>/smaps_rollup

# Per-child lifetime and request counts (requires mod_status).
# The full HTML page has a per-slot table: "Acc" is requests served,
# "SS" is seconds since that slot's child started. High values on the
# biggest-RSS children confirm old, never-recycled processes.
curl -s http://localhost/server-status | grep -A40 "Srv PID"

# Check whether children are being recycled at all
grep -ri "MaxConnectionsPerChild\|MaxRequestsPerChild" /etc/httpd/ /etc/apache2/ 2>/dev/null

# Evidence the endgame has started: OOM kills
dmesg | grep -i "oom\|killed process" | tail -20

# Memory pressure context
grep -E "MemAvailable|SwapFree|SwapTotal" /proc/meminfo

What to look for: a wide spread between average and max RSS, the oldest children (highest per-slot “SS”, most requests served) sitting at the top of the RSS list, and any swap usage at all. Sustained swap usage on Apache children is a warning sign on its own.

How to diagnose it

  1. Confirm the trend is per-PID and monotonic. Take RSS snapshots per PID now and again in an hour. A leak shows each PID’s line sloping upward at a similar rate. A one-time spike (deploy, cache warm, big request) shows a step, not a slope.

  2. Rule out “freed but not returned.” If RSS jumped during a traffic event and has been flat since, the allocator is holding freed pages at a high-water mark, not leaking. Only continued growth under continued traffic confirms a leak.

  3. Quantify with PSS, not RSS. Pull Pss: from /proc/<pid>/smaps_rollup for a few children. This is the real memory each child costs, and the number you need for sizing and bounding the damage.

  4. Identify the leaking module by URL pattern. Compare RSS growth across children serving different URL families: PHP application URLs vs static files, one vhost vs another, one endpoint vs the rest. The children whose RSS climbs fastest point at the handler responsible. On prefork this is straightforward since one child serves one request at a time; sample the child’s current request from the full server-status page alongside its RSS.

  5. Check the configuration for the amplifier. If MaxConnectionsPerChild is 0 or unset, the leak has unlimited runway. That does not cause the leak, but it is why the leak becomes an outage.

  6. Check the version. If HTTP/2 is enabled and httpd is older than 2.4.58 (or older than 2.4.68 for the later mod_http2 issues), treat a version-locked leak as a candidate cause before blaming application code.

  7. Estimate the blast radius. Compute MaxRequestWorkers x max_observed_child_RSS. If that exceeds roughly 70% of RAM, the leak is not the only problem: your worker pool is oversized against real per-child memory. See Apache MaxRequestWorkers tuning: sizing the worker pool against memory.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
Per-PID RSS trendThe primary leak signal; slope, not levelMonotonic growth per PID over hours or days
Per-PID PSS (smaps_rollup)True per-child cost without shared-page double countingPSS climbing in step with RSS confirms real growth
Avg vs max child RSS spreadDetects heavy requests and uneven leak exposureAny child >2x the average
Total Apache RSS vs RAMPositions you on the degradation curveMaxRequestWorkers x Avg RSS approaching 70% of RAM
MemAvailable trendLeading indicator before swap and OOMSteady decline at constant traffic
Swap usageSwapped children respond far slower; page-in latency dominatesAny sustained swap usage by httpd children
OOM kills in dmesgThe terminal phase has begunAny httpd child killed by the OOM killer
Requests served per childExplains RSS differences between childrenHighest-RSS children are also the oldest

Fixes

Contain first: bound the leak with child recycling

Set MaxConnectionsPerChild to a finite value so every child is destroyed and replaced after serving that many connections:

MaxConnectionsPerChild 5000

Start around 5000-10000, then watch per-child RSS over days. If children still grow large before hitting the limit, lower it. Do not go very low (hundreds): child creation is not free, and on prefork each new child is a full process fork. This is a band-aid. It converts an OOM outage into steady, bounded process churn while you find the real leak. The old directive name MaxRequestsPerChild still works; it was renamed in the 2.3 development line (available as MaxConnectionsPerChild since 2.3.9).

Fix the leaking code

Once the URL pattern implicates a module: for mod_php, set and enforce PHP’s memory_limit (note it does not cap leaks inside C extensions that allocate outside PHP’s allocator), and audit the application and extensions for known leaks. The durable structural fix for PHP is moving from mod_php to PHP-FPM, which isolates PHP memory into its own pools with independent worker recycling and removes the PHP runtime from every Apache child entirely. The same logic applies to mod_perl: an embedded interpreter’s leaks become Apache’s problem as long as it runs in-process.

Resize the pool against reality

If MaxRequestWorkers x real per-child PSS exceeds 70% of RAM, lower MaxRequestWorkers. A leaky child at 200MB RSS with 256 workers is a 50GB promise on a machine that cannot keep it.

Upgrade httpd when the leak is in the server

If the evidence points at HTTP/2 handling rather than application code, upgrade to the current 2.4.x and re-measure. This is the one case where “patch it” is the correct first fix.

Do not lead with a full restart. It resets RSS to baseline and destroys your evidence, and the leak restarts with the first request.

Prevention

  • Set MaxConnectionsPerChild on every deployment with embedded interpreters. The unlimited default is wrong for mod_php and mod_perl. Treat 5000-10000 as the starting band, tuned by observed RSS growth.
  • Trend per-child RSS and PSS over days, not just current levels. Leaks are invisible to threshold alerts until the terminal phase. The slope is the signal.
  • Size MaxRequestWorkers from measured PSS. Recompute after every significant application or module change, since per-child cost changes with your code.
  • Watch swap as an early warning. Any sustained swap usage by httpd children means you are already on the degradation curve, before OOM kills begin.
  • Keep httpd current on the 2.4 line. Memory-leak CVEs in mod_http2 are recurring. Pinning an old minor version re-introduces known leaks.

How Netdata helps

  • Per-process memory charts track each httpd child’s RSS individually over time, so the monotonic per-PID slope that defines this pattern is visible days before the OOM kills start, not after.
  • Correlating per-child memory with system-level MemAvailable and swap usage shows where you are on the degradation curve: page cache reclamation, swapping, or imminent OOM.
  • Apache worker utilization (BusyWorkers/IdleWorkers from mod_status) alongside memory tells you whether growing memory tracks real load or grows at constant traffic, which is the leak signature.
  • Child process respawn events and uptime resets surface the kill-and-respawn spiral once OOM begins, and distinguish “children recycling by design” from “children dying.”
  • Long retention on per-PID trends lets you compare this week’s growth rate to last week’s after a config or code change, which is how you confirm a fix actually stopped the leak.

Netdata’s Apache HTTP Server monitoring with Netdata brings these signals together with per-second metrics and ML anomaly detection.

The Netdata solution

Apache HTTP Server monitoring with Netdata

Netdata monitors Apache HTTP Server with per-second metrics from mod_status, pre-built dashboards, and ML-powered anomaly detection. Watch busy versus idle workers and the scoreboard state mix, requests per second, bytes served per second, and request processing duration alongside the rest of your stack, so you catch the worker-exhaustion, slow-backend, and memory incidents in these runbooks before they page anyone.