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-swap-thrashing ▌

Operations Guides

Apache swap thrashing: the latency cliff before the OOM kill

The symptom arrives before the failure. P95 latency doubles, then triples, across every endpoint at once, including static files that should be served from page cache. No 5xx spike yet. No OOM kills in dmesg yet. The Apache parent process is fine, the scoreboard shows workers in normal states, and every request is suddenly slow. This is the swap window: the period between “memory is tight” and “the kernel starts killing children,” where Apache is technically up but effectively degraded.

Apache’s own documentation is blunt about this: “A webserver should never ever have to swap, as swapping increases the latency of each request beyond a point that users consider ‘fast enough’” (Apache 2.4 performance tuning). An Apache child that has been swapped out must be paged back in before it can serve a request, and that child responds 10 to 100 times slower than normal. Because any request can land on any child, a fraction of swapped children raises tail latency for everyone.

This guide covers how the progression works, how to confirm it in minutes, and how to fix the memory math that causes it. The trigger is usually a worker pool sized without regard for per-child RSS; see Apache MaxRequestWorkers tuning for the full sizing procedure.

What this means

Linux does not go from “plenty of memory” to “OOM kill” in one step. As Apache’s total RSS approaches physical RAM, the kernel reclaims memory in a predictable order, and each stage degrades Apache differently:

  1. Page cache reclaim. The kernel drops clean file-backed pages first. Apache still works, but static files that were previously served from cache now hit disk. Read I/O rises, latency creeps up, and nothing looks wrong in free output because the freed cache shows up as available.
  2. Swapping. With page cache exhausted, the kernel starts moving anonymous pages (Apache child process memory) to swap. Children that get swapped out respond 10 to 100 times slower when paged back in. Tail latency spikes fleet-wide.
  3. Thrashing. If the working set genuinely does not fit in RAM, pages are swapped in, used briefly, and swapped out again. The system spends its time moving pages instead of serving requests. Allocations technically succeed, just extremely slowly, so the OOM killer may not fire for a long time while the server is unresponsive.
  4. OOM kill cascade. Finally the kernel OOM killer starts terminating processes. It usually selects the highest-badness task—often an httpd child—so you can have a “running” Apache with few or no functional children. The parent normally respawns replacements, which allocate memory and can be killed again.
flowchart TD
  A[Apache RSS grows toward RAM] --> B[Kernel reclaims page cache]
  B --> C[Static file reads hit disk - latency creeps]
  C --> D[Anonymous pages swapped out]
  D --> E[Swapped children 10-100x slower - tail latency spikes]
  E --> F{Working set fits in RAM?}
  F -->|yes| G[Recovers when pressure eases]
  F -->|no| H[Swap thrashing - paging dominates, OOM does not fire]
  H --> I[OOM killer kills children]
  I --> J[Parent respawns children]
  J --> A

The operational point: any sustained swap usage by Apache children is a warning, not a curiosity. By the time the OOM killer fires, you have already been serving degraded latency for minutes or hours. The goal is to catch stages 1 and 2, not stage 4.

Common causes

CauseWhat it looks likeFirst thing to check
MaxRequestWorkers oversized for RAMSwap usage climbs with traffic peaks; worst case at full worker countMaxRequestWorkers x avg child RSS vs total RAM
Module memory leak (mod_php, mod_perl)Per-child RSS grows monotonically over hours or days; swap climbs even at steady trafficPer-PID RSS trend; MaxConnectionsPerChild set to 0
Graceful restart pile-upMemory jumps correlate with deploys or log rotation; old and new generations overlapRepeated “resuming normal operations” in error log; many G states in scoreboard
Traffic growth past capacitySlow daytime trend: MemAvailable declining week over weekPeak total Apache RSS trend vs RAM
Another process eating memoryApache RSS stable but system MemAvailable fallingps sorted by RSS across all processes, not just httpd

The first cause is the most common and the most self-inflicted. MaxRequestWorkers set to 1000 on a 4 GB server with mod_php children at 50 MB each implies 50 GB of worst-case memory. The server has 4 GB. Under a real burst, the system swaps, then thrashes, then OOM kills.

Quick checks

All read-only. Run these during the latency spike.

# 1. Available memory and swap totals
free -m
grep -E "MemAvailable|SwapTotal|SwapFree" /proc/meminfo

MemAvailable is the number that matters. Low MemFree with high MemAvailable is normal Linux cache behavior, not a problem. Declining MemAvailable is the leading indicator.

# 2. Swap in/out rates right now (si = swap in, so = swap out, KB/s)
vmstat 1 5

Sustained non-zero si is the smoking gun: the kernel is paging memory back in to run processes, which means those processes stall on disk before they can serve requests. Brief so bursts with zero si are less alarming; sustained si is what kills latency.

# 3. Total and per-child Apache RSS
ps -C httpd -o pid,rss,cmd --sort=-rss 2>/dev/null || \
  ps -C apache2 -o pid,rss,cmd --sort=-rss

# Average RSS and process count (braces matter: without them the pipe
# only attaches to the second ps)
{ ps -C httpd -o rss --no-headers 2>/dev/null || \
  ps -C apache2 -o rss --no-headers; } | \
  awk '{sum+=$1; count++} END {if (count) printf "Avg RSS (KB): %d  Count: %d\n", sum/count, count; else print "No Apache processes found"}'

Multiply the average by MaxRequestWorkers (from your config, not server-status) and compare against total RAM. If the product exceeds RAM, the pool can never be fully busy without swapping.

# 4. OOM kills and kernel memory pressure history
dmesg -T | grep -i -E "oom|killed process" | tail -20

If OOM kills are already present, you are past the warning stage. Note which PIDs were killed; Apache children killed and respawned repeatedly is the cascade pattern.

# 5. Which children are actually swapped
for pid in $(pgrep 'httpd|apache2'); do
  swap=$(awk '/VmSwap/{print $2}' /proc/$pid/status 2>/dev/null)
  [ -n "$swap" ] && [ "$swap" != "0" ] && echo "PID $pid: ${swap} kB swapped"
done

VmSwap in /proc/[pid]/status shows per-process swap usage. Any Apache child with non-zero swap during a latency event confirms the mechanism.

# 6. Memory pressure stall information (kernel 4.20+)
cat /proc/pressure/memory

The full line shows the share of time all non-idle tasks were simultaneously stalled on memory; kernel documentation calls extended time in that state thrashing. No universal web-workload avg10 threshold exists. Track the trend, register a PSI trigger sized to your latency objective, and investigate any sustained rise above that local baseline.

How to diagnose it

  1. Confirm the latency is memory-correlated, not backend-correlated. Check the scoreboard state distribution: curl -s http://localhost/server-status?auto | grep Scoreboard. Swap thrashing looks different from a slow backend cascade. In a backend cascade, workers pile into W state while CPU and memory look normal. In swap thrashing, latency rises across all request types including static files, vmstat shows swap-in activity, and per-child VmSwap is non-zero. If you proxy and only proxied paths are slow, read Apache backend response time instead.

  2. Establish whether swap usage is sustained or a one-off. Sample vmstat 1 for 30 to 60 seconds and check SwapFree twice, a few minutes apart. A one-time swap-out from an overnight cron job or backup is noise. Continuous si traffic during business hours is the incident.

  3. Determine which cause applies. Compare per-child RSS now against a baseline from days ago. Growing RSS per PID points at a leak: monotonic per-child growth, MaxConnectionsPerChild 0, swap rising before OOM kills. Stable RSS with swap rising only at peak traffic points at an oversized worker pool or simple capacity exhaustion.

  4. Do the memory math. Worst case = MaxRequestWorkers x max observed child RSS. For prefork with mod_php, 50 to 100 MB per child is a reasonable starting estimate, but measure it. Apache’s maximum theoretical memory should not exceed about 70% of RAM; the rest belongs to the OS, page cache (which static file serving depends on), and everything else on the box.

  5. Check for restart pile-ups. grep "resuming normal operations" /var/log/apache2/error.log | tail -20 (or /var/log/httpd/error_log). Restarts minutes apart combined with many G states in the scoreboard mean multiple generations of children are coexisting, each holding memory. Graceful restarts during high load briefly double Apache memory.

  6. Rule out the neighbors. ps -eo pid,rss,cmd --sort=-rss | head -20. If the top consumers are not Apache, the fix is not in Apache config.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
MemAvailable trendThe leading indicator; falls before any swap activitySustained downward trend across days
Swap in rate (si)Direct measure of processes stalling on paged-in memoryAny sustained non-zero value during traffic
Swap out rate (so)Kernel pushing pages out; precursor to swap-in stallsRising at traffic peaks
Per-child VmSwapShows which Apache children are actually swappedAny non-zero value in production
Total Apache RSS vs RAMThe sizing equation behind everythingApproaching 70% of RAM
Per-child RSS trend per PIDDetects leaks before they become swapMonotonic growth over days
PSI memory full stallTime all tasks stalled on memory simultaneouslySustained non-zero avg10
P95/P99 request latencyThe user-visible symptomJump affecting all endpoints at once, static included

Fixes

Worker pool oversized for RAM

Recalculate MaxRequestWorkers from memory, not from traffic aspiration: MaxRequestWorkers = (usable RAM for Apache) / (max observed child RSS), with Apache’s total capped near 70% of RAM. This usually means lowering the number, which feels wrong during a traffic spike, but a queue in the listen backlog beats a swapped worker pool. Queued connections wait hundreds of milliseconds; swapped-out children stall for seconds. The full sizing procedure is in Apache MaxRequestWorkers tuning.

Tradeoff: a lower worker ceiling means earlier MPM worker-limit messages and earlier 503s under genuine overload. That is the correct failure mode. It is fast, visible, and recoverable, unlike thrashing.

Memory leak in a module

Set MaxConnectionsPerChild to a finite value (5000 to 10000) to force periodic child recycling. This bounds leak growth and is a band-aid, not a fix. Then find the leak: compare RSS growth across children serving different URL patterns. If mod_php is involved, set PHP’s memory_limit, check for known extension leaks, and consider moving to PHP-FPM, which isolates PHP memory from Apache children entirely.

Tradeoff: child recycling costs a brief spawn burst. Tune MinSpareServers/MinSpareThreads so recycling does not cause cold-child latency.

Graceful restart pile-up

Reduce restart frequency (deploy batching, less aggressive config management). GracefulShutdownTimeout applies to graceful-stop, not a graceful reload; tune request, keepalive, and proxy timeouts to limit lingering work.

Genuine capacity exhaustion

If RSS is stable, the pool is correctly sized, and MemAvailable still declines month over month, the workload has outgrown the host. Add RAM or split the workload. No Apache directive fixes physics.

What not to do

Do not treat “add more swap” as a fix. Swap does not make the working set fit; it only changes how slowly the system fails. Swap is not useless in general: on systemd systems, systemd-oomd uses PSI to kill runaway workloads proactively, and it needs some swap present to have time to react before the system livelocks. But for Apache latency specifically, the correct target is zero sustained swap usage by children, and the fix is always the memory math or the leak. Similarly, do not restart Apache as the first response: it clears the symptom for hours while the leak or sizing error reloads.

Prevention

  • Size from memory. Derive MaxRequestWorkers from measured child RSS. Re-derive after any module change, especially adding mod_php or a large framework.
  • Cap child lifetime. Non-zero MaxConnectionsPerChild in any deployment with embedded interpreters. The default of 0 is wrong for mod_php and mod_perl.
  • Watch the leading indicators, not the kill. Alert on MemAvailable trend and any sustained swap-in rate. OOM kills in dmesg are the postmortem, not the alarm.
  • Keep headroom. Apache’s worst-case memory at or below 70% of RAM, leaving page cache for static file serving.
  • Restart hygiene. Batch config changes, avoid automated restarts more often than necessary, and review request/keepalive/proxy timeout settings.

How Netdata helps

  • Available memory trend, not free memory. Netdata charts MemAvailable per second, so the slow reclaim phase (page cache being eaten) is visible days before swap starts, which is when the fix is cheapest.
  • Swap I/O rates separated from swap usage. Swap used staying flat is meaningless if pages are churning; the swap in/out rate charts show the thrash itself, which is what correlates with the latency spike.
  • Per-process RSS and swap. Per-application memory breakdowns let you see Apache’s aggregate RSS climbing and identify which processes hold swapped pages, without writing /proc scraping loops.
  • Apache scoreboard correlation. The Apache collector charts BusyWorkers, idle workers, and request rates alongside system memory, so you can tell “workers full because traffic is high” from “workers slow because they are being paged in” in one view.
  • Latency overlaid on memory pressure. Request latency percentiles next to swap-in rate turns the mechanism into a picture: latency steps up exactly when swap-in starts, not when RAM runs out.

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.