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 / zookeeper / zookeeper-heap-pressure-climbing

Operations Guides

ZooKeeper heap usage climbing: catching the GC death spiral before it starts

ZooKeeper keeps its entire data tree on the JVM heap: every znode, its data bytes, ACLs, children lists, watch registrations, and session state. When heap climbs, it is the leading indicator for the OOM that eventually kills the ensemble. The signal that matters is not the sawtooth peaks from young-generation GC, but the rising post-GC trough that means the live set itself is growing.

Sustained heap above roughly 75% of max drives GC pressure non-linearly. Above 90%, Full GC pauses stretch long enough to drop client sessions and trigger leader elections. The death spiral proper starts when those pauses themselves prevent requests from completing, which prevents objects from being freed, which forces even more GC. By the time you see the OOMKill, you are already inside the cascade.

The goal here is narrow: catch heap pressure while it is still a capacity trend, before it becomes a pause cascade that takes down sessions and quorum.

What this means

Read heap pressure through the post-GC trough, not the instantaneous usage number. A sawtooth that ramps to 70%, drops to 30%, and ramps again is healthy: young-generation GC collecting short-lived request objects. A sawtooth where the bottom keeps rising (30%, then 40%, then 50%) is the live set growing. That is the trend that ends in OOM.

Working thresholds:

  • Heap sustained above 75% of max: elevated GC pressure.
  • Heap sustained above 90% of max: imminent Full GC and OOM risk.
  • Post-GC trough above 50% of max: the live set is too large for the configured heap and capacity work is overdue.
  • Maintain at least 30% free heap as standing headroom.

A single Full GC pause above roughly 1 second is the leading indicator for both client session expiry and leader election. The danger windows are minSessionTimeout (default 2 x tickTime = 4000ms) for client sessions, and syncLimit x tickTime (default 5 x 2000ms = 10 seconds) for quorum stability. Once pause times start approaching those windows, every GC event is a near-miss.

One trap to name up front: heap pressure does not show up cleanly in mntr. The four-letter-word output does not expose JVM heap metrics in any current ZooKeeper release (still an open request, ZOOKEEPER-4818). You need JMX, jstat or jcmd, the AdminServer /commands/environment endpoint (ZooKeeper 3.6+), or an external Prometheus JVM exporter. Treat mntr as the source for tree and pipeline metrics, not for heap.

flowchart TD
  A[Live set grows: znodes watches sessions] --> B[Old generation fills]
  B --> C[GC frequency rises, Full GC pauses stretch]
  C --> D[Heartbeats and quorum ACKs missed]
  D --> E[Sessions expire, leader election]
  E --> F[Reconnect storm and election allocations]
  F --> B

Common causes

CauseWhat it looks likeFirst thing to check
Data tree growth (znode accumulation)zk_znode_count rising monotonically, zk_approximate_data_size rising, post-GC trough creeping upTrend of zk_znode_count and zk_approximate_data_size
Watch tracking bloatzk_watch_count rising faster than zk_num_alive_connections, watch notifications inflating zk_packets_sentzk_watch_count ratio to alive connections
Heap undersized for workloadHeap sustained above 75% with a stable tree, frequent young GC, occasional Full GCCurrent -Xmx against actual tree size
Wrong GC algorithmLong Full GC pauses, fragmentation on CMS, stop-the-world stalls, zk_jvm_pause_time_ms p99 elevatedJVM flags and Java version
Per-request allocation pressureSlow GC pressure under high request rate on pre-3.9.0 serialization pathZooKeeper version (ZOOKEEPER-4718 fixed in 3.9.0)
JVM swapRSS well above configured heap, GC pauses spike suddenly after weeks of stabilityps -o rss vs -Xmx, vm.swappiness

Quick checks

Read-only and safe on a production server.

# Current heap from JMX via jcmd (needs JDK tools and the ZK PID)
jcmd $(pgrep -f QuorumPeerMain) GC.heap_info

# Live GC summary, 5 samples 1 second apart
# Columns include O% (old gen used), FGC (full GC count), FGCT (full GC time)
jstat -gcutil $(pgrep -f QuorumPeerMain) 1000 5

# Data tree composition from mntr (does NOT include heap)
echo mntr | nc localhost 2181 | grep -E 'zk_(znode_count|approximate_data_size|watch_count|ephemerals_count|num_alive_connections)'

# JVM pause time percentiles (ZK 3.6+)
echo mntr | nc localhost 2181 | grep zk_.*jvm_pause

# AdminServer environment (3.6+) shows configured max heap
curl -s http://localhost:8080/commands/environment

# Process RSS vs configured heap (swap detection)
ps -o pid,rss,vsz,cmd -p $(pgrep -f QuorumPeerMain)

# Transparent Huge Pages status (THP multiplies GC pause times)
cat /sys/kernel/mm/transparent_hugepage/enabled

If mntr returns nothing, confirm 4lw.commands.whitelist includes mntr (required since ZooKeeper 3.5.3). A misconfigured whitelist silently returns empty output, which monitoring systems often interpret as zeros.

How to diagnose it

  1. Confirm the trend is live-set growth, not allocation spikes. Plot the post-GC trough over hours or days, not the instantaneous usage. If the trough is flat but peaks are spiking, the problem is allocation rate (request load, per-request allocation, or watch notification fan-out), not tree size.
  2. Pull the tree composition. zk_znode_count and zk_approximate_data_size should move together if nodes are accumulating. If data size grows faster than node count, individual znodes are getting larger, which usually means an application is using ZooKeeper as a data store against the jute.maxbuffer 1MB default.
  3. Pull watch and ephemeral counts. Watch registrations are tracked on heap. A watch leak shows up as rising zk_watch_count without proportional growth in zk_num_alive_connections. The ratio of watches per connection should be stable.
  4. Confirm GC is actually driving latency symptoms. Cross-reference zk_jvm_pause_time_ms p99 with zk_avg_latency and zk_outstanding_requests. If pause spikes and queue depth spikes coincide, GC is the cause. If only write latency moves and read latency stays flat, the disk is more likely the cause.
  5. Estimate runway. Track zk_znode_count growth rate, then estimate bytes per znode as approximate_data_size / znode_count. Rule of thumb: roughly 300 bytes of per-znode overhead, with JVM object overhead typically 2-3x the raw data size once headers, references, and HashMap internals are included.
  6. Check the GC algorithm and Java version. CMS is deprecated since JDK 9 and removed in JDK 14. G1GC is the JVM default since JDK 9. ZGC is production-ready from JDK 15 (experimental since JDK 11). The -XX:+UseConcMarkSweepGC flag on JDK 14+ is silently ignored or errors at startup.
  7. Confirm the JVM is not swapping. Swelling RSS past the configured heap means the JVM is touching native or off-heap memory, and any paging makes GC pauses 10-100x worse because GC must page objects in to scan them. Confirm vm.swappiness is 0 or 1 on ZooKeeper hosts.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
Post-GC heap trough (JMX)Live-set size is the real capacity signalTrough rising over days, or above 50% of max
Heap used / max ratio (JMX)Direct pressure measurementSustained above 75% (elevated), above 90% (imminent)
zk_jvm_pause_time_ms p99Catches the stalls that drop sessions and quorump99 above 1000ms, or trending toward minSessionTimeout
zk_znode_countTree size, all on heapMonotonic growth, or above roughly 1M nodes
zk_approximate_data_sizeBytes of data in the treeGrowing faster than znode count
zk_watch_countWatch tracking consumes heapGrowing without proportional connection growth
zk_outstanding_requestsQueue builds during pausesSustained non-zero, or spiking at GC frequency
zk_stale_sessions_expiredConfirms pauses are expiring sessionsAny non-zero rate outside maintenance
zk_looking_countConfirms pauses are triggering electionsIncrements that correlate with pause spikes
zk_ephemerals_countDynamic portion of the treeSudden drops indicate mass session expiry

Fixes

Data tree bloat

The most common root cause. Persistent znodes accumulate forever; only ephemeral nodes die with their sessions. Identify which subtree is leaking.

# Top ephemeral holders by session (expensive on large trees; use sparingly)
echo dump | nc localhost 2181 | sort | head -50

Once the leaking application is identified, delete the unnecessary znodes. Warning: deleting heavily-watched znodes in production triggers watch-notification storms, which can themselves spike heap and outstanding requests. Coordinate with the owning application, do cleanup in batches, and prefer off-peak windows. For new subtrees that should auto-clean, use container nodes (ZooKeeper 3.5+) or TTL nodes (3.5+) so the leak does not recur.

Heap undersized

If the tree is appropriately sized but heap is still climbing, the heap is too small. Update ZOO_HEAP_SIZE or JVMFLAGS in zkEnv.sh (or the equivalent in your distribution’s service file). A rolling restart is required.

Tradeoff: bigger heaps mean longer Full GC pauses with the wrong collector. With G1GC or ZGC, larger heaps are safe and pauses stay bounded. With Parallel GC or CMS, larger heaps make things worse. The Apache admin guide recommends sizing conservatively relative to physical memory: “if you have 4G of RAM, do not set the Java max heap size to 6G or even 4G. For example, it is more likely you would use a 3G heap for a 4G machine, as the operating system and the cache also need memory.” A common operator pattern is to start around a few GB and grow as the tree demands.

Set Xms = Xmx to avoid heap resizing overhead during operation, and consider -XX:+AlwaysPreTouch so memory pages are faulted in at startup rather than during request processing.

Wrong GC algorithm

  • G1GC is the safe default. The default MaxGCPauseMillis is 200ms.
  • ZGC (JDK 15+) gives sub-millisecond pauses at the cost of more total memory.
  • CMS is deprecated since JDK 9 and removed in JDK 14. Any deployment still on CMS should treat migrating off it as capacity work, not tuning.

If GC logging is not enabled, turn it on now. Operating a ZooKeeper server without GC logs means operating blind on the single metric most likely to take the ensemble down.

# Java 9+ GC logging flag
-Xlog:gc*:file=/var/log/zookeeper/gc.log:time,uptime,level,tags:filecount=5,filesize=100m

# Java 8 equivalent
-verbose:gc -XX:+PrintGCDetails -Xloggc:/var/log/zookeeper/gc.log

Watch leak

If zk_watch_count is growing out of proportion to connections, the fix is on the client side, not the server. ZooKeeper 3.6+ added persistent and recursive watches that do not need re-registration, which can drive sustained higher watch counts than one-shot watches. Identify the clients registering watches without consuming them.

Per-request allocation pressure

A known serialization path allocated unnecessary heap per request before being fixed in 3.9.0 (ZOOKEEPER-4718). If you are on 3.8.x and seeing GC pressure under high request rate, upgrade to 3.9.x as part of the fix.

JVM swap

If RSS is well above configured heap, investigate off-heap and native memory (NIO buffers, Netty buffers, JVM internals). Set vm.swappiness=0 or 1 and ensure the host has enough physical memory for heap plus off-heap overhead plus the rest of the system.

Prevention

  • Track the post-GC trough as a capacity metric. Instantaneous usage hides the live-set trend that predicts OOM. Keep the trough below 50% of max heap.
  • Alert on tree growth trends, not just absolutes. Page on zk_znode_count and zk_approximate_data_size growth rate, not only on absolute thresholds. Re-baseline after every major application onboarding.
  • Size heap for tree growth 6-12 months out. Re-baseline after every major application onboarding.
  • Prefer G1GC or ZGC. Do not deploy new ensembles on CMS, and migrate existing ones off it.
  • Set Xms = Xmx and consider -XX:+AlwaysPreTouch. Avoid runtime heap resize and page-fault stalls.
  • Disable Transparent Huge Pages on ZooKeeper hosts. THP can multiply GC pause times by 2-10x.
  • Pin vm.swappiness to 0 or 1. Swapping makes GC pauses 10-100x worse.
  • Run ZooKeeper 3.9.x or later when feasible. Newer releases reduce per-request heap allocation pressure.
  • Use container nodes or TTL nodes for subtrees that should auto-clean. Prevents the slow persistent-znode accumulation that causes most long-running heap incidents.

How Netdata helps

  • Per-second JVM heap metrics (used, committed, max) surface both the sawtooth and the rising post-GC trough that slower scrapes blur into a flat line.
  • ML anomaly detection flags the non-linear climb from roughly 75% to 90% as a single behavioral change, instead of waiting on a static threshold that fires after the spiral has started.
  • zk_znode_count, zk_approximate_data_size, and zk_watch_count sit alongside JVM heap in one view, so the driver of live-set growth is visible without manual cross-referencing.
  • zk_jvm_pause_time_ms p99 paired with zk_outstanding_requests, zk_stale_sessions_expired, and zk_looking_count tells you immediately whether a heap trend has started cascading into sessions and elections.
  • JVM collector and pause-time percentiles tracked against the heap baseline make a GC algorithm regression obvious against historical behavior.