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 / activemq / activemq-producer-flow-control ▌

Operations Guides

ActiveMQ producer flow control: why send() hangs and producers block silently

Your application is healthy. No exceptions, no error logs, no timeouts. But requests are piling up and every thread that touches the message producer is stuck inside send(). Thread dumps show all your producer threads parked in the JMS client, waiting on a socket write that never completes. Nothing is wrong on the client. Nothing looks wrong on the broker either, until you check one number: MemoryPercentUsage is at 100.

This is ActiveMQ Classic producer flow control, and it is the most common way ActiveMQ takes down upstream services. When a destination memory limit, the broker system memory limit, or the store/temp limit is reached, the broker stops reading from the producer’s socket. TCP backpressure does the rest. The producer’s send() blocks indefinitely. No exception. No log entry on the producer side. No timeout, unless you configured one. The official documentation notes this is frequently misread as a “hung producer” when the producer is actually just waiting for space.

This article covers how the mechanism works, how to confirm it in minutes, and how to make it loud instead of silent.

What this means

Producer flow control is ActiveMQ’s way of protecting itself from running out of memory. Every message the broker accepts is charged against two budgets: the destination’s memory limit and the broker-wide system memory limit (<systemUsage><memoryUsage> in activemq.xml, by default a percentage of JVM heap). For persistent messages the store limit matters too; for non-persistent overflow, the temp store limit.

When any of these limits is hit, the broker does not reject the message. It stops reading bytes off the producer’s TCP connection. The kernel TCP buffers fill, the client’s send buffer fills, and the producer’s send() call blocks in a socket write. From the client’s perspective the broker has gone mute.

Two things make this nasty in production:

  • It is silent by default. No exception, no producer-side log, no timeout. Unless you set sendFailIfNoSpaceAfterTimeout or sendFailIfNoSpace, the producer hangs forever.
  • It can be broker-wide. If the shared system memory pool hits 100%, every producer on every destination blocks, even producers writing to empty queues. One slow consumer can freeze your entire service mesh.
flowchart TD
  A[Producer calls send] --> B[Transport thread reads socket]
  B --> C[Persist to KahaDB if persistent]
  C --> D[Charge message to destination and broker memory]
  D -->|under limit| E[Cursor and dispatch to consumers]
  D -->|limit reached| F[Broker stops reading producer socket]
  F --> G[TCP receive buffer fills]
  G --> H[send blocks: no exception, no log, no timeout]

One scope note: persistent messages are sent synchronously by default and block in send() as described. Non-persistent messages are sent asynchronously by default and will not block in send() unless you configure a ProducerWindowSize on the connection factory. If your async producers seem unaffected while memory climbs, that is why, and your visibility gap is even bigger.

Common causes

CauseWhat it looks likeFirst thing to check
Slow or stuck consumerOne destination’s memory climbs to 100%, dequeue rate drops, inflight pinned at prefetchPer-destination MemoryPercentUsage and InFlightCount
Broker-wide memory exhaustionAll producers block, MemoryPercentUsage at 100 at the broker levelBroker MBean MemoryPercentUsage
Store limit reached (persistent)StorePercentUsage at 100, persistent producers blockedStorePercentUsage plus actual disk free
Temp store full (non-persistent)TempPercentUsage at 100, non-persistent flow stallsTempPercentUsage and data/tmp_storage size
Non-persistent flood with VM cursorsMemory climbs with low store usage; VM cursor messages live entirely in heapDestination cursor type and memory per destination
Downstream broker in a Network of BrokersLocal memory fine but producers still blocked; flow control propagated over a bridgeMemory usage on the remote broker

Quick checks

All read-only. Jolokia paths assume the web console on 8161 with default credentials; adjust for your deployment.

# Broker-level memory: 100 means flow control is active right now
curl -s -u admin:admin \
  'http://localhost:8161/api/jolokia/read/org.apache.activemq:type=Broker,brokerName=localhost/MemoryPercentUsage'

# Find which destination is full (wildcard across all queues)
curl -s -u admin:admin \
  'http://localhost:8161/api/jolokia/read/org.apache.activemq:type=Broker,brokerName=localhost,destinationType=Queue,destinationName=*/MemoryPercentUsage'

# Store and temp store: persistent and non-persistent ceilings
curl -s -u admin:admin \
  'http://localhost:8161/api/jolokia/read/org.apache.activemq:type=Broker,brokerName=localhost/StorePercentUsage'
curl -s -u admin:admin \
  'http://localhost:8161/api/jolokia/read/org.apache.activemq:type=Broker,brokerName=localhost/TempPercentUsage'

# For the suspect queue: consumers, backlog, inflight
curl -s -u admin:admin \
  'http://localhost:8161/api/jolokia/read/org.apache.activemq:type=Broker,brokerName=localhost,destinationType=Queue,destinationName=MY.QUEUE/ConsumerCount,QueueSize,InFlightCount,EnqueueCount,DequeueCount'

# Broker log: flow control leaves traces on the broker side
grep -i "memory limit" /opt/activemq/data/activemq.log | tail -20
grep -i "prevent flooding" /opt/activemq/data/activemq.log | tail -20

# Client side: confirm producers are parked in socket write
jstack <producer_pid> | grep -A5 "SocketOutputStream"

Two notes on these checks. First, the log path varies by install ($ACTIVEMQ_HOME/data/activemq.log is typical; service wrappers may redirect elsewhere). Second, the broker-side log line is your fastest confirmation that flow control engaged, since the producer logs nothing at all.

How to diagnose it

  1. Confirm flow control is the problem. Check broker MemoryPercentUsage. If it is 100, flow control is active. If it is not, also check StorePercentUsage and TempPercentUsage; a full store blocks persistent producers the same way.
  2. Localize to a destination. Wildcard-query per-destination MemoryPercentUsage. One destination at 100 with a per-destination policy limit means only that destination’s producers are blocked. Nothing at 100 individually but the broker at 100 means the shared pool is exhausted and everyone is blocked.
  3. Identify the failing consumer. For the full destination, compare ConsumerCount, InFlightCount, and dequeue rate. Inflight equal to consumer_count x prefetch_size (default prefetch is 1000 for queues) with a flat dequeue rate means consumers have the messages but are not acking: stuck, deadlocked, or waiting on a slow downstream dependency.
  4. Check the silent-growth suspects. Look at ActiveMQ.DLQ depth and durable subscriber PendingQueueSize. A DLQ that grows forever (no TTL by default) or an orphaned durable subscription accumulates store and memory pressure until the whole broker tips over. This is the classic slow-burn version of the incident.
  5. Rule out look-alikes. Long GC pauses also freeze producers, but they show as connection drops and a sawtooth connection count, not a memory gauge pinned at 100. A hung broker process shows a dead JMX endpoint, not readable MBeans reporting 100%.
  6. In a Network of Brokers, check downstream. Flow control propagates upstream through network bridges. If your local broker looks fine, check memory on the broker that actually has the consumers.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
Broker MemoryPercentUsageThe flow control cliff. 99% works, 100% blocks all producersAbove 80% sustained; any reading of 100
Per-destination MemoryPercentUsageIsolates the noisy destination before it starves the shared poolAny destination at 100
StorePercentUsage and disk free on the KahaDB partitionStore full blocks persistent messaging; they are different ceilings and either can hit firstAbove 80% or steady climb over days
TempPercentUsageNon-persistent overflow ceiling; often unknown until it fillsAny sustained non-zero value
Enqueue rate vs dequeue rateSustained enqueue greater than dequeue is the leading indicator; enqueue dropping to zero with active producers means blocking is already happeningRatio above 1.5 sustained
InFlightCount vs prefetchInflight pinned at prefetch means consumers are not ackingEquality sustained over 2 minutes
ActiveMQ.Advisory.Full.Queue.<name> advisoryBroker-published signal that a destination is fullAny message on this advisory topic
DLQ depth and redelivery rateSilent consumers of memory and store that eventually trigger flow controlAny sustained growth

Advisories are on out of the box: advisory support defaults to true, and the broker publishes these Full-advisory messages automatically whenever a destination’s usage limit is hit, so no per-destination advisory configuration is required.

Fixes

Unblock producers right now

Flow control releases the moment space frees up, so the fastest fix is restoring consumption.

  • Restart or disconnect the stuck consumer. If inflight is pinned and the consumer application is wedged, restarting it returns its inflight messages to the queue for redelivery to healthy consumers. This is disruptive to in-flight work on that consumer, so confirm it is actually stuck first.
  • Drain the backlog. If consumers are alive but slow (downstream dependency recovering), scaling consumer instances out is the clean fix.
  • Purge or move dead weight. Purging a queue or clearing the DLQ frees memory and store immediately. This destroys messages, so export or browse them first if they have business value.

Raising memoryUsage in activemq.xml is a real option but requires a broker restart, which makes it a mitigation for next time rather than an in-incident fix. Keep the broker memory limit around 60-70% of JVM max heap; the JVM needs headroom for non-message objects.

Make blocking visible instead of silent

This is the permanent fix for the “nobody knew” problem. Configure one of the escape hatches:

<systemUsage>
  <systemUsage sendFailIfNoSpaceAfterTimeout="5000">
    <memoryUsage>
      <memoryUsage percentOfJvmHeap="70"/>
    </memoryUsage>
  </systemUsage>
</systemUsage>
  • sendFailIfNoSpaceAfterTimeout="5000": send() blocks up to the timeout, then throws javax.jms.ResourceAllocationException. Usually the right choice: transient backpressure is absorbed, genuine exhaustion becomes a loud, catchable exception with a message your logging will actually capture. Set the timeout honestly. Values in the tens of minutes are indistinguishable from the default silent hang.
  • sendFailIfNoSpace="true": fail immediately with the same exception. Right for latency-sensitive paths where any blocking is unacceptable, but every transient spike becomes an error your producer must handle.
  • Both can also be set per destination via <policyEntry> since 5.16.0 (shared broker-wide settings only before that), so you can fail fast on critical queues while letting batch queues block.

Producers must catch and log ResourceAllocationException, and ideally route to a fallback (retry with backoff, spill to a local buffer, shed load). An exception nobody handles is only marginally better than a hang.

The alternative mode: producerFlowControl=false

Setting producerFlowControl="false" on a destination policy stops the broker from blocking producers. Understand what you are trading:

  • Persistent messages keep flowing to the store via cursors until disk fills. You have moved the cliff from “producers block” to “broker disk full”, which is worse to recover from.
  • For non-persistent messages, once memory and temp store are exhausted, messages can be silently dropped if no fail-if-no-space option is set. This is the silent message loss pattern: producers see nothing, consumers just see less traffic.

Use it deliberately, with sendFailIfNoSpace configured and tight store/disk monitoring, not as a way to make the alerts stop.

Fix the root cause on the consumer side

Flow control is a symptom. The common roots: consumers blocked on a slow database or downstream API, prefetch too large for the processing rate (1000 messages buffered per queue consumer by default), consumer thread pool exhaustion, and DLQ or durable-subscription accumulation slowly eating the shared pool. Reducing prefetch to match real processing throughput is often the single most effective change for slow-consumer cascades.

Prevention

  • Alert below the cliff. Ticket at 80% broker MemoryPercentUsage sustained, page at 100% with active producers. Also alert on the growth rate: memory climbing a few percent per minute means minutes of runway, not hours.
  • Set per-destination memory limits via <policyEntry> so one runaway queue cannot drain the shared broker pool.
  • Configure sendFailIfNoSpaceAfterTimeout on every production broker, and make producer code handle the exception. Silent blocking should be an opt-in, not the default you inherited.
  • Put a TTL on DLQ messages and alert on any non-zero DLQ depth. DLQ growth is the most common slow path to store and memory exhaustion.
  • Reap orphaned durable subscriptions. Any offline durable subscriber with a growing pending count is a permanent leak.
  • Monitor store and disk independently. The configured store limit and the physical partition are different ceilings; watch both.
  • Run a canary. A synthetic produce/consume round trip on a dedicated queue catches “metrics look fine but nothing flows”, which metric-only monitoring misses.
  • For async (non-persistent) producers, set ProducerWindowSize on the connection factory so flow control can actually apply to them.

How Netdata helps

  • Netdata collects the ActiveMQ broker’s JMX/Jolokia metrics, so MemoryPercentUsage, StorePercentUsage, and TempPercentUsage are graphed continuously, letting you see the climb toward the flow control cliff instead of discovering it at 100%.
  • Per-destination queue depth, enqueue/dequeue rates, and inflight counts on one dashboard make the slow-consumer cascade visible as a shape: dequeue flattening while depth and memory rise together.
  • Alerting on memory usage thresholds and on the enqueue/dequeue imbalance gives you the leading indicator (consumption falling behind) rather than the lagging one (producers already hung).
  • Correlating broker metrics with host-level disk usage on the KahaDB partition closes the gap between ActiveMQ’s configured store limit and real disk capacity.
  • Historical retention lets you distinguish the slow-burn version (DLQ and store creeping up over weeks) from a sudden burst, which changes the fix.

This is currently the only guide in this section. For the full signal catalog, failure archetypes, and monitoring maturity model for the broker, see the ActiveMQ operations guide hub.