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-channel-inactive-too-long ▌

Operations Guides

ActiveMQ InactivityIOException: Channel was inactive for too long

Your producers or consumers are dropping JMS connections with this in the stack trace:

org.apache.activemq.transport.InactivityIOException: Channel was inactive for too long

Sometimes it is one client. Sometimes every client on the broker disconnects within the same second and reconnects in a burst. The exception points at the connection, but the connection is almost never the root cause. Something on one side of the wire stopped producing traffic for longer than the OpenWire inactivity timeout, and the other side declared it dead.

The timeout is wireFormat.maxInactivityDuration, default 30000ms. A stop-the-world GC pause, a network stall, or a hung broker thread that exceeds 30 seconds of silence trips it on every open connection at once. That is why this exception arrives in waves: it is the visible symptom of the GC pause death spiral or a stalled broker, not a client bug.

This guide covers how the inactivity monitor works, how to tell which side stalled, and what to fix before you touch the timeout.

What this means

ActiveMQ Classic runs an InactivityMonitor on each end of an OpenWire connection. Both sides send periodic keep-alive traffic, and both sides watch for inbound traffic. If nothing arrives within maxInactivityDuration, the watching side assumes the peer is dead and closes the connection with InactivityIOException.

Three behaviors matter for diagnosis:

  1. Both ends monitor independently. The client can kill the connection because the broker went quiet, and the broker can kill it because the client went quiet. The exception can appear in client logs, broker logs, or both.
  2. The negotiated value is the shorter one. At connection startup, client and broker negotiate maxInactivityDuration and the initial delay. The shorter duration wins. Changing the timeout on only one side may have no effect.
  3. The timer measures silence, not health. A broker frozen in a 35-second full GC is alive but produces no traffic, so every client declares it dead. When the GC finishes, all of those clients reconnect simultaneously, allocate new sessions and subscriptions, and increase heap pressure, which makes the next GC pause longer. That is the GC pause death spiral, and this exception is its signature.
flowchart TD
  A[Stall on one side: GC pause, network stall, hung thread] --> B[No traffic for maxInactivityDuration 30s default]
  B --> C[Peer fires InactivityIOException and closes connection]
  C --> D[All clients reconnect simultaneously]
  D --> E[New sessions, subscriptions, MBeans allocated]
  E --> F[Heap pressure rises, next GC pause longer]
  F --> A

The exception is a smoke alarm. Treat the timeout as the last thing to tune, after you have found and fixed whatever stopped the traffic.

Common causes

CauseWhat it looks likeFirst thing to check
Broker-side GC pause over 30sAll clients disconnect at once, sawtooth connection count, reconnect burst right afterGC log and CollectionTime on the broker JVM
Client-side GC pauseOne application disconnects while others stay connected; exception only in that app’s logsGC log on the client JVM
Network stall or partitionA subset of clients (same subnet, same host, same LB path) drops simultaneouslyss on the broker, switch/LB logs, retransmit counters
Hung broker (store stall, disk latency)Broker process alive, port open, but dispatch and heartbeats stop; persistent enqueue stallsiostat -x on the KahaDB device, thread dump
Slow network with large messagesExceptions during large message transfer on constrained linksMessage sizes on the affected destinations, broker version
Deliberately aggressive tuningmaxInactivityDuration set very low (for example for fast failover detection) and tripped by normal jitterConnection URIs on both client and broker transport connector

One historical note: before ActiveMQ 5.3.0 the inactivity monitor only updated its activity flag after a full message was assembled, so large messages over slow links could trip the monitor mid-transfer. This was fixed in 5.3.0 (AMQ-2088). On any current release, this is not your problem.

Quick checks

All read-only. Run on the broker host unless noted.

# 1. Confirm the exception and see whether it is one client or many
grep -c "InactivityIOException" /opt/activemq/data/activemq.log
grep "InactivityIOException" /opt/activemq/data/activemq.log | tail -20

# 2. Check GC pauses on the broker JVM (the prime suspect)
#    If pgrep returns more than one PID, pass them one at a time
jstat -gcutil $(pgrep -f activemq | head -1) 1000 10
tail -100 /opt/activemq/data/gc.log   # if GC logging is enabled

# 3. Current heap state
curl -s -u admin:admin \
  'http://localhost:8161/api/jolokia/read/java.lang:type=Memory/HeapMemoryUsage'

# 4. Connection count: did it drop and spike (sawtooth = GC-driven)?
curl -s -u admin:admin \
  'http://localhost:8161/api/jolokia/read/org.apache.activemq:type=Broker,brokerName=localhost/CurrentConnectionsCount'

# 5. Is the broker actually serving, or hung?
ss -tn state established '( sport = :61616 )' | wc -l

# 6. Disk latency on the KahaDB device (a store stall freezes the broker)
df /opt/activemq/data/kahadb/ | awk 'NR==2{print $1}'
iostat -xd 1 5

# 7. What was the broker doing around the disconnect window
grep -i "memory limit\|flow control" /opt/activemq/data/activemq.log | tail -20

Adjust the broker log path and the brokerName in the Jolokia query to your installation. On the affected client, check its own GC log or add GC logging if none exists. A client-side 30-second pause produces the same exception with a healthy broker.

How to diagnose it

  1. Scope the blast radius. Did one client disconnect, a group of clients, or everything? One client points at that client (its GC, its host, its network path). Everything at once points at the broker or shared network. A correlated subset points at shared infrastructure between them.

  2. Align timestamps. Take the exact time of the InactivityIOException and line it up against the broker’s GC log. A full GC spanning the disconnect window is your answer. If GC logging is not enabled on the broker, enable it now (for JDK 11+, -Xlog:gc*:file=gc.log:time) because you will need it the next time this happens. A JVM restart is required to add the flag.

  3. Check for the death spiral pattern. Pull connection count over the incident window. A sudden drop followed by a spike, repeated, with heap usage staying high after GC, confirms the GC pause death spiral. The fix is heap and GC work, not heartbeat tuning.

  4. Rule out a store stall. If GC is clean, check disk latency on the KahaDB partition during the window. Persistent sends block on journal fsync, and a storage stall can freeze broker progress long enough to trip inactivity timers. Look for await and w_await above 50ms sustained.

  5. Rule out flow control. If broker memory hit 100% around the incident, producer flow control blocked sends and the broker stopped reading sockets. That backpressure can cascade into silence on connections. Check MemoryPercentUsage history and the broker log for “memory limit” messages.

  6. Verify the negotiated timeout. Check the client connection URI and the broker transport connector for wireFormat.maxInactivityDuration. The shorter value wins. Confirm the option uses the wireFormat. prefix; without it, it is silently ignored. If clients connect over the HTTP transport rather than OpenWire over TCP, wireFormat.* options do not apply there at all.

  7. Capture a thread dump if the broker hung. If the broker was unresponsive during the window and GC and disk are clean, jstack <pid> during the next occurrence is the single most valuable artifact. jstack pauses the JVM only briefly and is safe on a production broker, but capture several dumps a few seconds apart to distinguish a stuck thread from a busy one. Transport thread names contain client IPs, which identifies which peer was involved. One caution: there is a long-standing deadlock pattern between the Failover transport and the InactivityMonitor worker thread (tracked upstream as AMQ-6313, reported against 5.13.0 and since closed as incomplete with no code fix, so the risk still applies on current 5.x). If you use failover: URIs, look for the inactivity monitor thread blocked against failover transport locks in the dump.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
GC pause duration and frequencyPauses over maxInactivityDuration (30s default) guarantee mass disconnectionAny pause >10s; full GC more than once per 5 minutes
JVM heap after major GCThe death spiral starts with heap pressure>85% after GC, or rising floor across GC cycles
Connection countSawtooth drop-spike pattern is the fingerprint of GC-driven disconnectsSudden drop to zero or >50% deviation from baseline
Transport accept rateReconnection storm shows here firstSustained rate >5x normal
Broker MemoryPercentUsageFlow control at 100% stalls producers and can silence connectionsClimbing >80%, or 100% with active producers
Disk I/O latency on KahaDB deviceStore stalls freeze persistent messaging and broker progressw_await >10ms sustained, >50ms critical
Enqueue/dequeue ratesBoth drop to zero during a broker-wide stallSimultaneous collapse with connections still established

Fixes

Fix the GC pause (most common root cause)

If the broker is pausing past 30 seconds, the heap is too small, leaking, or badly tuned. Increase -Xmx (requires restart), switch to G1GC for heaps over 4GB, and investigate why heap stays high after GC: too many destinations, messages held in VM cursors, or a leak. The same applies to the application JVM on the client side. Do not mask a 35-second GC pause with a longer heartbeat; the broker is still frozen for 35 seconds and nothing flows during that time.

Fix the store stall

If disk latency on the KahaDB partition spiked, move KahaDB to dedicated storage, away from OS and log I/O. Persistent send throughput is bounded by journal fsync latency, so storage contention shows up first as stalls, then as inactivity timeouts.

Fix the network path

For a correlated subset of clients, investigate the shared hop: load balancer idle timeouts that drop quiet TCP connections, firewall state timeouts, or retransmission-heavy links. A load balancer that silently drops idle connections produces exactly this exception pattern. OpenWire keep-alive traffic (the inactivity monitor’s useKeepAlive option, enabled by default) helps, but the LB’s idle timeout must exceed the keep-alive interval or the connection still gets reaped.

Tune the timeout deliberately, last

Only after the underlying stall is fixed (or accepted as unavoidable), adjust the heartbeat:

  • Set wireFormat.maxInactivityDuration on the client URI, the broker transport connector, or both. The shorter of the two negotiated values wins, and the option needs the wireFormat. prefix or it is ignored.
  • Raising it (for example to 60000) buys tolerance for jitter but delays detection of genuinely dead peers.
  • Setting it to 0, or setting useInactivityMonitor=false on the transport, disables the monitor entirely. This is sometimes appropriate on trusted LAN links, but dead connections are then only reaped by TCP, which can take much longer.
  • wireFormat.maxInactivityDurationInitalDelay (default 10000ms; the misspelling is in the ActiveMQ code) controls the grace period before monitoring starts. Under heavy load, wire format negotiation can exceed this and the broker closes brand-new connections; raise the initial delay, not the main duration, in that case.
  • On the HTTP transport, wireFormat.* options do not apply. Use useInactivityMonitor=false in the connection URI if the monitor is causing noise there.

Prevention

  • Enable GC logging on every broker and every JMS client JVM. Without it, every incident like this starts from zero evidence.
  • Alert on GC pauses approaching, not exceeding, the inactivity timeout. A page threshold tied to pauses over 30s with correlated connection drops catches the death spiral; a ticket at pauses over 1-2s catches the buildup.
  • Size heap for the workload and keep ActiveMQ’s memoryUsage limit at 60-70% of JVM max heap so the broker’s own accounting and the JVM do not fight.
  • Keep KahaDB on dedicated, low-latency storage and alert on write latency, not just disk space.
  • Baseline connection count per broker and alert on deviation. The sawtooth pattern is obvious on a graph and invisible in logs until you grep for it.
  • If you use failover: client URIs, test reconnection behavior under load before you need it in production, given the known failover/InactivityMonitor deadlock risk.

How Netdata helps

  • Per-second JVM heap and GC collection metrics on the broker host make long pauses impossible to miss and easy to align with disconnect timestamps.
  • Connection count and accept-rate charts show the sawtooth drop-and-reconnect pattern that distinguishes GC-driven mass disconnection from a single client failure.
  • Disk latency per device on the KahaDB partition correlates store stalls with the inactivity timeout window, separating storage problems from JVM problems.
  • Enqueue/dequeue rate collapse during the incident window confirms whether the broker was actually frozen or only the connection was.
  • Anomaly detection on connection count catches the reconnection storm even when the absolute count returns to baseline within minutes.