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-client-session-timed-out

Operations Guides

ZooKeeper "Client session timed out, have not heard from server": the heartbeat miss

A Client session timed out, have not heard from server in <ms>ms for session id 0x..., closing socket connection and attempting reconnect log line is the client’s SendThread reporting that no PING response arrived inside its heartbeat window. This is a client-side symptom of a heartbeat miss. It is not the server expiring the session, and it is not yet SessionExpired. The client closes its socket and tries another ensemble member.

The outcome depends on whether reconnect succeeds before the negotiated session timeout elapses on the server. If the client re-establishes the session inside the window, the session continues and ephemeral nodes survive. If the timeout elapses first, the leader’s session tracker expires the session, every ephemeral node owned by that session is deleted, every watch on those nodes fires, and the client receives SessionExpired once it reconnects. The same root cause (a JVM stop-the-world pause, a network drop, a leader election) produces either outcome depending on duration.

Operators default to blaming the network. In production ensembles the more common root cause is a JVM pause on either side of the connection. Server-side JVM pause metrics (zk_jvm_pause_time_ms with percentile variants like zk_p99_jvm_pause_time_ms, available via mntr in ZooKeeper 3.7+ when the JvmPauseMonitor is enabled with jvm.pause.monitor=true) and the client JVM’s own GC logs are usually more diagnostic than packet captures. This article walks the heartbeat mechanism, the causes that account for most of these log lines, and the order in which to check signals.

What this means

ZooKeeper sessions are heartbeated by the client. SendThread sends a PING after roughly one third of the negotiated session timeout has elapsed, and expects a response before another third passes. If no response arrives inside that window, the client logs the timeout message and enters reconnect.

The session timeout is negotiated at connect time. The client proposes a value, and the server clamps it to the range enforced by tickTime:

  • minSessionTimeout = 2 x tickTime
  • maxSessionTimeout = 20 x tickTime

With the default tickTime of 2000ms, the server enforces a 4s to 40s range. A client requesting 60s silently receives 40s; a client requesting 2s silently receives 4s. Both ends of the clamp produce surprising behaviour. The long-timeout case fails earlier than the application expects, and the short-timeout case is more sensitive to GC pauses than the operator expects.

The progression that matters operationally:

  1. Heartbeat miss. Client logs the message in the title. Socket closes. Client enters CONNECTING and tries another host.
  2. ConnectionLoss. While disconnected, any in-flight operation throws ConnectionLoss. Most client libraries queue writes and reissue them after reconnect.
  3. Session recovery or SessionExpired. If the client reconnects to any ensemble member and the server still has the session in its tracker, the session resumes with the same id. If the negotiated timeout elapses first, the leader’s session tracker expires the session, ephemerals vanish, and the client must create a new session.

The log line in the title sits between step 1 and step 3. It is the early signal and is recoverable. The expensive failure is step 3; the goal of diagnosis is to prevent repeated misses from accumulating into expirations.

Common causes

CauseWhat it looks likeFirst thing to check
Server-side JVM pauseMany clients log the timeout together; server GC log shows a Full GC at the same wall-clock secondServer GC log; echo mntr | nc localhost 2181 | grep -i jvm_pause
Client-side JVM pauseOnly clients in one JVM (or one host) log the timeout; server metrics are clean; client JVM GC log shows the pauseClient JVM GC log; jstat -gcutil on the client process
Network loss or RTT spikeClients in one network segment fail together; server-side metrics are cleanmtr to ensemble hosts; conntrack exhaustion, NAT, recent security group changes
Leader electionClients of any one member log timeouts during the election window; zk_server_state reports LOOKINGecho mntr | nc localhost 2181 | grep zk_server_state; zk_looking_count tracks cumulative election count
Session timeout too lowTimeouts recur under modest GC pressure; negotiated timeout sits at or near minSessionTimeoutCompare requested vs effective timeout; review tickTime

The first three rows are the common ones. The last two are configuration problems that surface through the same log line.

Quick checks

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

# Check server is alive and read-write (not read-only after quorum loss)
echo isro | nc localhost 2181

# Confirm which role this node currently holds
echo mntr | nc localhost 2181 | grep zk_server_state

# JVM pause metrics on the server (3.7+, requires jvm.pause.monitor=true). Compare p99 to minSessionTimeout.
echo mntr | nc localhost 2181 | grep -i jvm

# Sessions expired for missed heartbeats
echo mntr | nc localhost 2181 | grep -iE 'stale|expired'

# Connections dropped by the server
echo mntr | nc localhost 2181 | grep -i drop

# Outstanding request queue (should be 0 in steady state)
echo mntr | nc localhost 2181 | grep zk_outstanding_requests

# RTT and loss between the affected client and each ensemble member
for h in zk1 zk2 zk3; do ping -c 20 "$h"; done

# Client JVM GC stats (run on the affected client host)
jstat -gcutil <client_pid> 1000 10

# Server JVM GC stats
jstat -gcutil $(pgrep -f QuorumPeerMain) 1000 10

If mntr returns nothing, check the four-letter word whitelist. Since ZooKeeper 3.5.3, only srvr is allowed by default. Add mntr, stat, ruok, isro, and cons explicitly via 4lw.commands.whitelist in zoo.cfg or the zookeeper.4lw.commands.whitelist system property. The AdminServer on port 8080 (3.5+) exposes the same data over HTTP and is the recommended path forward as four-letter words are being deprecated.

How to diagnose it

Work through scope before tuning anything. The shape of the blast radius is the fastest signal.

flowchart TD
    A["Client logs session timed out"] --> B{"How many clients affected?"}
    B -- "Many, across networks" --> C["Server-side GC pause"]
    B -- "Many, one network" --> D["Network partition or RTT"]
    B -- "Only this JVM" --> E["Client-side GC pause"]
    B -- "Brief, during election" --> F["Leader election window"]
  1. Establish scope. Triage across the fleet of clients. A single client logging timeouts points at that client’s JVM or its network path. A burst across many clients points at the server or the shared network.
  2. Check the server first. Even if the symptom appears client-local, confirm the server is clean before chasing the client. A server JVM pause freezes PING handling and produces timeouts on every connected client. Pull JVM pause percentiles, then read the GC log directly. A Full GC entry whose timestamp matches the client log to the second is the answer.
  3. Check for elections. During leader election the ensemble does not process writes and may not respond to heartbeats reliably. zk_server_state reports LOOKING during the election window, and zk_looking_count is a monotonic counter that tracks each election event. Brief elections during rolling restarts are normal. Recurring elections outside maintenance indicate the leader is repeatedly becoming unresponsive, usually from GC or disk pressure.
  4. Check the client JVM. If the server is clean and only one client (or one JVM) is affected, the client’s SendThread may itself be stuck in a stop-the-world pause. A client-side pause longer than the session timeout is particularly dangerous: the server expires the session because no PING arrives, but the client believes it is still connected and may continue to act on ephemeral state it no longer owns.
  5. Check the network last. If both JVMs are clean, verify the path. Look for asymmetric reachability, since the quorum port and the election port are separate TCP ports; a firewall that blocks only one will pass isro checks but break elections on the next failure. Also check NAT or conntrack table exhaustion on hosts that originate many connections, and recent security group changes that often precede cloud incidents.

The session id in the log line is the key correlation handle. Note the 0x... value, then look for matching entries in the server’s connection listings (cons or stat four-letter output) when the client reconnects.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
JVM pause time p99 (zk_p99_jvm_pause_time_ms, 3.7+)A server-side pause freezes PING handling for every client on that nodep99 above roughly 1/3 of minSessionTimeout (about 1333ms with default tickTime)
Session expiration counter (zk_stale_sessions_expired)Counts sessions the server killed for missed heartbeatsAny non-zero rate outside maintenance
Connection drop counter (zk_connection_drop_count)Validates that connections were actually closedSustained drop rate above 0.1% of total connections per minute
Election counter (zk_looking_count)Election frequencyMore than one event per hour outside maintenance
zk_num_alive_connectionsMass-disconnect detectionSharp drop of more than 50% in a 1-minute window
zk_ephemerals_countMirrors session loss, since ephemerals die with sessionsSharp drop without a corresponding deployment event
zk_outstanding_requestsPipeline saturation that delays heartbeat processingSustained non-zero value with active traffic
Client-side session event listenerThe client’s own view, including ConnectionLoss and SessionExpiredRepeated transitions per minute

Two composite patterns are particularly relevant. The GC pause cascade shows rhythmic latency spikes in zk_avg_latency and zk_outstanding_requests that build during the pause and drain after, with connection drops incrementing once the pause ends. The session expiration storm shows a V-shaped zk_num_alive_connections curve (drop, timeout pause, reconnect spike), accompanied by an zk_ephemerals_count drop and a zk_packets_sent burst from watch fan-out.

Fixes

Server-side JVM pause

This is the most common root cause and the easiest to confirm.

  1. Confirm via the server GC log; JVM pause metrics corroborate but the GC log is authoritative.
  2. Check the data tree size. zk_znode_count and zk_approximate_data_size together drive heap pressure. Keep total in-memory tree size below roughly 50% of heap.
  3. Size the heap to the data tree with headroom. The rising-trough pattern in heap usage (each GC reclaims less than the last) means live data is growing.
  4. Choose a collector suited to the heap size. G1GC has been the default JVM collector since JDK 9; ZooKeeper’s own launch scripts do not set a collector. For JDK 15 or later, ZGC dramatically reduces pause times and is worth the migration if pauses are a recurring incident driver.
  5. Disable Transparent Huge Pages on the ZooKeeper host if you see pauses longer than the GC log suggests. THP can multiply pause duration.

See ZooKeeper “fsync-ing the write ahead log took too long”: the disk warning behind most write stalls for the related disk-side write stall pattern, which compounds with GC pressure.

Client-side JVM pause

If only one client is logging timeouts and the server is clean, the client’s SendThread is itself pausing.

  1. Enable GC logging on the client JVM and look for stop-the-world events that overlap the client log timestamps.
  2. Tune the client JVM so pause durations stay well below the negotiated session timeout. A client GC pause that exceeds the session timeout produces a window in which the server has already expired the session (and may have released locks to other clients) while the original client still believes it owns them.
  3. Review the requested session timeout against what the application actually needs. A longer timeout tolerates longer pauses but delays failover in legitimate network partitions.

Network loss or RTT spike

When the JVMs are clean and the symptom clusters by network segment:

  1. Run mtr to each ensemble member from the affected client population.
  2. Verify both the quorum port and the election port are reachable between every pair of members. The election port only matters during a leader election, so a partial firewall passes every check until the next failure, then produces a catastrophic election.
  3. Check conntrack and NAT table sizes on hosts that originate many client connections. NAT exhaustion produces silent drops that look like packet loss at the application layer.
  4. Review recent security group or firewall changes. These are a frequent precursor in cloud environments.

Session timeout too low

If timeouts recur under load that the JVMs and network can handle, the negotiated timeout may be sitting at or near minSessionTimeout.

  1. Confirm tickTime in zoo.cfg and compute minSessionTimeout = 2 x tickTime.
  2. Compare the application’s requested timeout against the clamped value the server actually enforces.
  3. Adjust tickTime (which raises both bounds) or document the clamp explicitly so application teams understand what they are actually getting.

Note that raising tickTime also widens the leader’s heartbeat interval to followers and changes the syncLimit x tickTime window. Review the related guides below before changing it on a production ensemble.

Prevention

  • Treat server JVM pause time as a first-class signal. Most teams collect zk_avg_latency and skip pause time. Pauses are the dominant cause of session expirations and unnecessary elections.
  • Alert on session expiration rate (zk_stale_sessions_expired), not the absolute counter. The counter is monotonic, so alert on the delta.
  • Tune both JVMs, not just the server. Client-side GC is an underrated cause and is invisible to server-side monitoring.
  • Test failover regularly. Controlled server kills are the only way to confirm the client population reconnects cleanly and that monitoring catches the resulting elections and session churn.
  • Match session timeouts to the deployment environment. Kafka’s default zookeeper.session.timeout.ms moved from 6s to 18s in Kafka 2.5.0 (KAFKA-9102) because cloud environments produce more spurious timeouts. Apply the same thinking to your own clients.

How Netdata helps

  • Per-second collection of ZooKeeper metrics makes the wall-clock overlap between a server GC event and a client-side heartbeat miss immediately visible on a single chart.
  • ML anomaly detection on zk_num_alive_connections, zk_ephemerals_count, and zk_packets_sent catches the V-shaped signature of a session expiration storm before it cascades into dependent services.
  • Composite dashboards let you place the leader’s zk_outstanding_requests next to client-side connection state, so a heartbeat miss can be triaged as server, client, or network in seconds rather than minutes.
  • Anomaly advisors flag the rising-trough pattern in heap usage and rhythmic latency spikes that precede a GC pause cascade, giving lead time before sessions start expiring.