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-pulsar / apache-pulsar-throttled-connections ▌

Operations Guides

Apache Pulsar throttled connections: the broker shedding load under pressure

Your dashboard shows pulsar_broker_throttled_connections climbing from zero, producers are complaining about elevated send latency, and some clients are timing out on new operations. The broker process is up, the health endpoint returns 200, and heap looks fine. The broker is not broken. It is defending itself.

Connection throttling is a protective mechanism. When the broker’s internal send queues on a connection back up beyond a configured ceiling, it stops reading new requests from that TCP connection (it disables auto-read on the Netty channel) until the backlog drains. The throttled connection count tells you how many connections are currently in that state. In a healthy cluster this gauge is zero. Any sustained non-zero value means the broker is at or near its capacity for the work being pushed through it.

This guide covers how to confirm what is actually saturated behind the throttle, and how to make the right call between adding broker capacity and reducing the load you are asking the broker to carry. For the broader failure catalogue and where this signal sits in the overall model, see How Apache Pulsar actually works in production.

What this means

Each client connection to a broker carries producers, consumers, and the acknowledgements and dispatch traffic for all of them. When the broker cannot drain its per-connection pending send queue as fast as requests arrive, it applies backpressure by pausing reads on that socket. The client sees this as rising publish or receive latency and, if it persists, timeouts and retries. Retries from many clients at once turn a throttled broker into a reconnection storm, which makes the underlying resource problem worse.

The throttle is a symptom, not a root cause. It fires when something downstream of the connection cannot keep up. The usual suspects are:

  • Direct memory pressure: every connection and in-flight message holds Netty off-heap buffers. Approaching MaxDirectMemorySize, allocation slows and queues back up.
  • Too much work per broker: too many owned topics, too much throughput, or too many connections for the CPU and memory allocated.
  • A slow write path: bookie journal stalls mean publish acknowledgements are late, so pending send state accumulates on the broker.
  • Connection storms: mass client reconnects after bundle unloads, broker restarts, or a client retry-loop bug.
flowchart TD
  A[Resource saturation] --> B[Pending send queue backs up]
  B --> C[Broker pauses reads on connection]
  C --> D[throttled_connections goes non-zero]
  D --> E[Client latency and timeouts]
  E --> F[Client retries and reconnects]
  F --> B
  A1[Direct memory pressure] --> A
  A2[Too many topics or throughput] --> A
  A3[Slow bookie write path] --> A
  A4[Connection storm] --> A

The dangerous property of this pattern is the feedback loop: throttling causes timeouts, timeouts cause retries and reconnects, and the churn adds load to an already saturated broker. Breaking the loop requires fixing the resource at the top of the diagram, not restarting the broker at the bottom.

Common causes

CauseWhat it looks likeFirst thing to check
Direct memory exhaustion approachingProcess RSS far above heap, throttling grows with connection count, eventually OutOfDirectMemoryError in logsDirect buffer pool usage via JMX; RSS vs heap gap
Too many topics on the brokerpulsar_topics_count much higher than peer brokers, GC pressure climbingPer-broker topic count comparison
Throughput exceeds broker capacityCPU saturated, publish latency elevated before throttle events, rates high on all topicsBroker CPU and pulsar_broker_rate_in trend
Bookie write path stallbookie_journal_JOURNAL_SYNC P99 spiking, publish latency rising before throttlingJournal sync latency and force write queue on bookies
Connection stormpulsar_active_connections spiking sharply, churn metrics diverging, recent bundle unload or restartConnection created vs closed counters
Client retry loop bugConnection count grows monotonically over days, throttling appears at peaksLong-term connection count trend

Quick checks

All of these are read-only and safe to run during an incident.

# Current throttled connection count (should be zero in steady state)
curl -s http://<broker-host>:8080/metrics | grep throttled_connections

# Active connections: is the broker also carrying a connection spike?
curl -s http://<broker-host>:8080/metrics | grep pulsar_active_connections

# Publish latency: is the write path slow, or is the broker the bottleneck?
curl -s http://<broker-host>:8080/metrics | grep pulsar_broker_publish_latency

# Topic count on this broker: compare against peers for a hotspot
curl -s http://<broker-host>:8080/metrics | grep pulsar_topics_count

# Bundle unload rate: recent unloads explain reconnect storms
curl -s http://<broker-host>:8080/metrics | grep pulsar_lb_unload_bundle_total
# On the bookies: is the journal the real bottleneck behind the throttle?
curl -s http://<bookie-host>:8000/metrics | grep bookie_journal_JOURNAL_SYNC
curl -s http://<bookie-host>:8000/metrics | grep JOURNAL_FORCE_WRITE_QUEUE_SIZE
curl -s http://<bookie-host>:8000/metrics | grep bookkeeper_server_ADD_ENTRY_IN_PROGRESS
# Check direct memory pressure (not exposed as a Pulsar Prometheus metric)
jcmd <broker-pid> VM.native_memory summary
# And the RSS vs heap gap
grep VmRSS /proc/<broker-pid>/status
jcmd <broker-pid> GC.heap_info

# Established socket count at the OS level
ss -tn state established '( dport = :6650 or sport = :6650 )' | wc -l
# Look for throttle and memory signatures in broker logs
grep -i "OutOfDirectMemoryError\|Direct buffer memory" /var/log/pulsar/broker.log

How to diagnose it

Work top-down from the throttle signal to the saturated resource. The order matters because the fix is completely different for each branch.

  1. Confirm the throttle and its shape. Scrape pulsar_broker_throttled_connections over a few minutes. A brief spike during a bundle unload or deploy is normal churn. A sustained non-zero value, or a value that ratchets upward, is the incident. Note whether one broker is affected or several. One broker points at a hotspot or a local resource problem; several brokers points at cluster-wide capacity or a shared dependency like bookies.

  2. Check publish latency and message rates. If pulsar_broker_publish_latency P99 rose before or alongside the throttling, and pulsar_rate_in is dropping, the write path is backing up. Go to step 4 (bookies). If publish latency is roughly flat but throttling is rising with connection count, suspect the broker’s own resources: continue to step 3.

  3. Check broker-local resources: direct memory, connections, topic count. Compare process RSS to heap usage. A large gap means direct memory is heavily used; if it is approaching MaxDirectMemorySize (broker default 4GB), buffer allocation is slowing and queues back up into the throttle. Check pulsar_active_connections against its multi-week baseline: a monotonic climb indicates a connection leak, a sharp spike indicates a storm. Check pulsar_topics_count against peer brokers: a broker owning far more topics than its peers is a hotspot the load balancer has not corrected.

  4. Check the bookie write path. On the bookies, look at bookie_journal_JOURNAL_SYNC P99, bookie_journal_JOURNAL_FORCE_WRITE_QUEUE_SIZE, and bookkeeper_server_ADD_ENTRY_IN_PROGRESS. Journal sync latency spiking, a force-write queue that stays above zero, and an add-entry queue that does not drain within seconds of a burst all mean the storage layer cannot keep up, and the broker throttle is a downstream consequence. Verify with iostat -x 1 on the journal disk: high %util and await confirm disk saturation. Remember that one slow bookie in a write quorum stalls every topic writing through it.

  5. Look for the churn amplifiers. Check pulsar_lb_unload_bundle_total for recent bundle unloads and pulsar_connection_created_total_count against pulsar_connection_closed_total_count for churn. A throttle that started right after a broker restart, a rolling upgrade, or a load-balancing event is likely a reconnect storm; the storm itself can keep the broker throttled even after the original event is over.

  6. Decide: capacity or load. With the saturated resource identified, the decision tree is simple. Storage path saturated: fix or add bookies; adding brokers makes it worse. Broker direct memory or CPU saturated at legitimate load: add brokers or rebalance bundles so the load spreads. Topic count or connection count growing from leaks and abandoned clients: shed load, because adding hardware only delays the cliff.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
pulsar_broker_throttled_connectionsThe protective throttle itself; should be zeroAny sustained non-zero value
pulsar_active_connectionsFD and direct memory load; reveals leaks and stormsUnexplained growth over weeks, or spikes > 2x baseline
pulsar_broker_publish_latency P99Tells you whether the write path or the broker is the bottleneck> 2x rolling baseline
bookie_journal_JOURNAL_SYNC P99The storage-side root cause behind many throttles> 2x baseline, or above device-appropriate ceiling
bookkeeper_server_ADD_ENTRY_IN_PROGRESSBookie write queue depth; leads the latency spikeQueue not draining within ~30s after a burst
pulsar_topics_count per brokerHotspot detection; topic-heavy brokers throttle firstOne broker > 2x cluster mean
Direct buffer pool usage (JMX)The invisible resource behind most connection throttling> 75% of MaxDirectMemorySize
pulsar_lb_unload_bundle_totalExplains reconnect storms that amplify throttlingSustained > 1/min outside maintenance

Fixes

If the bookie write path is the root cause

The throttle on the broker is collateral. Throttling-aware producers will not help; the journal disk is the wall.

  • Identify whether one bookie or all bookies show journal latency. One bookie means degraded hardware or a noisy neighbor on that disk; decommission or replace it. All bookies means aggregate write load exceeds the storage fleet: add bookies or reduce ingest.
  • Verify no other process shares the journal disk. Journal and ledger storage must be on separate devices; a shared journal disk produces exactly this failure shape.
  • As a temporary relief valve only, shape producer traffic (client-side rate limits or batching tuning) to let queues drain. This trades producer latency for stability.

If direct memory is the root cause

  • Reduce the memory consumers: close leaked connections (fix clients that do not close cleanly), reduce per-connection buffer pressure from oversized messages, and cap connection counts per client where the client library allows pooling.
  • Increase -XX:MaxDirectMemorySize if the host has physical headroom. Remember that direct memory is off-heap: heap plus direct memory plus JVM overhead must fit in the container or host memory limit, or you trade a throttle for an OOM kill. See the companion guide on the off-heap crash JVM heap dashboards never show.
  • Do not restart the broker as a first response. A restart drops all connections and triggers a mass reconnect, which is precisely the churn that feeds throttling. Restart only if the broker is already unresponsive.

If the broker is simply overloaded with topics or throughput

  • Rebalance: if one broker owns a disproportionate share of topics, trigger or wait for bundle unload to spread load, and check why the load balancer has not already done so (thresholds, sticky bundles).
  • Split hot namespaces into more bundles so the load balancer has finer-grained units to move.
  • Add brokers and let the load balancer migrate bundles onto them. This is the right answer when all brokers are uniformly hot at legitimate load.
  • Shed topics: delete test, temporary, and abandoned topics and subscriptions. High topic counts consume heap, FDs, and dispatcher state even at low traffic.

If a connection storm is the amplifier

  • Find the trigger: recent bundle unloads, a broker restart, a network blip, or a client deploy with an aggressive retry configuration.
  • Fix clients in retry loops. Exponential backoff and connection reuse matter more here than any broker-side change. A client that opens a new connection per operation instead of reusing one will keep the broker throttled indefinitely.
  • After the storm subsides, verify pulsar_active_connections returns to baseline. If it does not, you have a leak, not a storm.

Prevention

  • Alert on the signal, not the aftermath. Ticket on any sustained non-zero pulsar_broker_throttled_connections. It fires earlier than publish latency collapse and much earlier than client-visible outages.
  • Watch the leading indicators. Direct memory headroom (under 50 percent comfortable, over 75 percent urgent), active connection trend over weeks, and per-broker topic count variance all move before the throttle does. The Pulsar monitoring checklist covers the full baseline set.
  • Size bundles for balance. Enough bundles per namespace that no single bundle holds an outsized share of traffic, and load balancing thresholds that actually trigger before a broker is saturated.
  • Harden clients. Enforce connection reuse, bounded retry with backoff, and clean shutdown in your client libraries. Most throttled-connection incidents have a client behavior amplifier.
  • Capacity-plan the write path. Journal sync latency trending up over weeks is your runway signal for adding bookies before brokers ever throttle.

How Netdata helps

  • Netdata collects the broker Prometheus endpoint directly, so pulsar_broker_throttled_connections, pulsar_active_connections, pulsar_topics_count, and publish latency land on the same per-second timeline, which makes the sequence (what saturated first) visible instead of inferred.
  • Per-broker comparison is built in: overlaying topic count, connection count, and throttle events across brokers exposes the single hot broker that cluster averages hide.
  • Bookie metrics (journal sync latency, force write queue, add-entry in progress) are collected alongside broker metrics, so you can see the bookie stall precede the broker throttle in one view rather than correlating two dashboards by hand.
  • Host-level collection adds process RSS, CPU, and disk await/%util for the journal device, filling the direct-memory and disk-saturation gaps that the Pulsar metrics endpoint does not expose.
  • ML-based anomaly detection on connection and latency charts flags the slow, multi-week connection leak that threshold alerts tuned for spikes will miss.