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-dlq-no-expiration ▌

Operations Guides

ActiveMQ DLQ never expires: setting TTL so the dead-letter queue stops leaking storage

Your ActiveMQ.DLQ has been sitting at some non-zero depth for months. Nobody looks at it because “it’s just the DLQ.” Meanwhile StorePercentUsage creeps up a fraction of a percent a day, the db-*.log journal files keep accumulating, and one morning the broker hits 100% store usage and blocks every persistent producer on the bus.

This is the default behavior of ActiveMQ Classic, not a bug. Messages sent to the dead-letter queue have no TTL. They accumulate forever, and every one of them is a live reference that pins KahaDB journal files against garbage collection. The fix has two parts: configure expiration on the DLQ so the leak stops, and drain-and-investigate the existing backlog instead of just deleting it. Every DLQ message is a failed business transaction; purging blind throws away the evidence.

This article covers the diagnosis, the exact configuration, and the two traps that turn this fix into a new incident: DLQ-to-origin forwarding loops and wildcard policy entries that apply expiration where you did not intend it.

What this means

In ActiveMQ Classic, when a message exhausts its redelivery attempts (default: 6, set client-side via RedeliveryPolicy.maximumRedeliveries) or expires on its origin queue, the broker moves it to the dead-letter queue. By default that is a single shared queue, ActiveMQ.DLQ, governed by SharedDeadLetterStrategy.

Three defaults combine to make this a silent storage leak:

  1. No TTL on DLQ messages. Once a message lands in the DLQ, nothing ever removes it unless an operator does.
  2. processExpired="true" by default. Messages that hit their TTL on origin queues are forwarded into the DLQ too, so the DLQ also collects expiry traffic, not just poison messages.
  3. Journal pinning. KahaDB reclaims a db-*.log journal file only when every message in it has been acknowledged. DLQ messages are never acknowledged. One old DLQ message pins an entire 32MB journal file, and DLQ traffic spread across weeks of journals pins many of them.

The cascade looks like this:

flowchart TD
  A[Poison or expired messages] --> B[Redeliver to max retries]
  B --> C[Moved to ActiveMQ.DLQ]
  C --> D[No TTL: never expires]
  D --> E[DLQ depth grows or churns in place]
  E --> F[Journal files pinned: unacked msgs block GC]
  F --> G[StorePercentUsage climbs over weeks]
  G --> H[Store 100%: persistent producers blocked]

One more subtlety: a stable DLQ depth is not proof the leak stopped. “It’s always been around 500” can hide continuous churn, with new failures arriving as fast as old ones are dealt with (or expired on the origin side and re-arriving). Watch the DLQ enqueue rate, not just the depth. Also note that messages moved to the DLQ are counted as dequeued from the source queue, so your origin queue’s dequeue rate can look healthy while messages are actually being discarded.

Common causes

CauseWhat it looks likeFirst thing to check
Default config, never touchedDLQ depth grows slowly for months; store usage tracks itQueueSize and EnqueueCount on ActiveMQ.DLQ
Expired messages feeding the DLQDLQ grows even though consumers look healthy; ExpiredCount climbing on origin queuesExpiredCount per destination; processExpired setting
Recurring poison messagesDLQ enqueue rate steady or bursty; same message shape repeatingBrowse DLQ, check JMSDestination and exception properties
Stable-but-nonzero DLQ hiding churnDepth flat, journal count still growingDLQ EnqueueCount delta over time vs DequeueCount
Prior fix attempt created loops or advisory stormsDLQ depth explodes after a policy change; unexpected ActiveMQ.Advisory.* destinations appearReview recent activemq.xml policy changes for wildcard expiration

Quick checks

All read-only. These assume the Jolokia HTTP bridge on the web console (default port 8161, bound to 127.0.0.1 since 5.16) and default credentials; adjust for your environment.

# DLQ depth right now
curl -s -u admin:admin \
  'http://localhost:8161/api/jolokia/read/org.apache.activemq:type=Broker,brokerName=localhost,destinationType=Queue,destinationName=ActiveMQ.DLQ/QueueSize'

# DLQ enqueue and dequeue counters (take two readings to get a rate)
curl -s -u admin:admin \
  'http://localhost:8161/api/jolokia/read/org.apache.activemq:type=Broker,brokerName=localhost,destinationType=Queue,destinationName=ActiveMQ.DLQ/EnqueueCount,DequeueCount,ExpiredCount'

# Store pressure
curl -s -u admin:admin \
  'http://localhost:8161/api/jolokia/read/org.apache.activemq:type=Broker,brokerName=localhost/StorePercentUsage'

# Journal file count and total store footprint on disk
ls /opt/activemq/data/kahadb/db-*.log | wc -l
du -sh /opt/activemq/data/kahadb/
df -h /opt/activemq/data/

# Which origin queues are feeding the DLQ: browse and inspect JMSDestination
# (browse is expensive on deep queues; the web console's first page is safer)
curl -s -u admin:admin \
  'http://localhost:8161/api/jolokia/exec/org.apache.activemq:type=Broker,brokerName=localhost,destinationType=Queue,destinationName=ActiveMQ.DLQ/browse'

Two things to note on the last command: queue browsing is expensive on deep queues, so prefer the web console’s paged view over a full browse() on a DLQ with hundreds of thousands of messages. And JMSTimestamp is set by the producer’s clock, so age calculations are only as good as your NTP discipline.

How to diagnose it

  1. Establish whether the DLQ is leaking or just old. Take two readings of the DLQ EnqueueCount an hour apart. A rising enqueue count means active failure traffic, and that root cause matters more than the storage. A flat enqueue count with a large depth means a historical backlog to drain.
  2. Attribute DLQ messages to their origins. Browse a sample and read the JMSDestination property plus any exception/redelivery headers. Group by origin queue. Usually one or two queues supply almost all DLQ traffic.
  3. Check whether expiry is feeding the DLQ. Look at ExpiredCount on the origin queues. If expired messages are a large share of DLQ arrivals and you do not need expired messages preserved, that traffic can be shut off at the strategy level (see Fixes).
  4. Quantify the store impact. Compare journal file count and StorePercentUsage trend against DLQ depth. If the DLQ is the main unacked population, its messages are what pins the journals. Remember the pinning is not one-file-per-message: DLQ messages interleaved through many journals can hold a large fraction of the store.
  5. Check for non-persistent blind spots. By default processNonPersistent="false", so failed non-persistent messages never reach the DLQ at all. If your workload is non-persistent, your DLQ depth understates your failure rate.
  6. Rule out a prior misconfiguration. If someone already tried to fix this, look for expiration set on a wildcard or default policyEntry. That is the loop trap described below.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
DLQ QueueSizeThe leak itselfAny sustained non-zero value; growth
DLQ EnqueueCount rateDistinguishes active failure churn from a static backlogNon-zero rate sustained; “stable” depth with rising enqueues means churn
DLQ / origin enqueue ratioNormalizes DLQ traffic against workloadRatio climbing instead of absolute counts
ExpiredCount per destinationExpired messages route to the DLQ by defaultRising on queues whose traffic then appears in the DLQ
StorePercentUsageThe resource the leak exhaustsSteady climb uncorrelated with application backlog
KahaDB journal file countPinned files are the mechanismGrowth while application queues are shallow
Disk free on the KahaDB partitionStore limit and physical disk are different ceilings<30% free with a growing trend

Fixes

Set an expiration on the DLQ strategy

Since ActiveMQ 5.12, deadLetterStrategy supports an expiration attribute (milliseconds) that stamps a TTL on messages as they are dead-lettered. A 7-day retention looks like this in activemq.xml:

<destinationPolicy>
  <policyMap>
    <policyEntries>
      <policyEntry queue=">">
        <deadLetterStrategy>
          <sharedDeadLetterStrategy processExpired="false" expiration="604800000"/>
        </deadLetterStrategy>
      </policyEntry>
    </policyEntries>
  </policyMap>
</destinationPolicy>

Two deliberate choices in that example:

  • processExpired="false" stops expired messages from being forwarded into the DLQ at all. If your expired traffic is expected shedding (TTLs doing their job), this removes a whole class of DLQ arrivals. If you need expired messages preserved for audit, leave it true and rely on expiration to bound their lifetime instead.
  • expiration on the dead-letter strategy, not on the queue policy. This is the distinction that matters.

The broker checks message expiry periodically on queues, controlled by expireMessagesPeriod on the policy entry (default 30000ms; 0 disables the check). So DLQ messages are reaped within roughly one sweep interval of their TTL, not at the exact millisecond.

Tradeoff: once a DLQ message expires it is gone. If your organization needs failed messages retained longer for audit or replay, set the TTL to match that retention requirement and build a drain-and-archive consumer instead of relying on the queue as cold storage.

Never set expiration on a wildcard or default policy entry

The official documentation is blunt about this: do not apply expiration to your DLQ destinations by setting it on a default or inclusive wildcard policy entry. Two concrete failure modes:

  • DLQ-to-origin loops. If an expired DLQ message is forwarded onward (the official documentation warns that a DLQ entry which expires and forwards to the same or another DLQ with expiry can introduce a loop) and your strategy audit is disabled or its sliding window is exceeded, you can build a forwarding cycle that never terminates.
  • Advisory queue explosion. Applying message expiry through a wildcard like queue=">" has been observed to interact badly with advisory destinations, producing unexpected ActiveMQ.Advisory.* queues with doubled message populations. Scope the policy entry tightly and enumerate destinations after any policy change.

Use per-destination DLQs (IndividualDeadLetterStrategy) if you need different retention per queue, and set expiration on the strategy for those specific entries.

Drain and investigate the existing backlog

Setting expiration does not retroactively stamp messages already sitting in the DLQ. The existing backlog needs an explicit decision:

  1. Export or browse a representative sample per origin queue. Identify the common failure: schema change, deserialization error, downstream outage window.
  2. Fix or ticket the root cause. The DLQ is a bug report queue; treat the top categories as work items.
  3. Replay what is still valid, then purge the rest. Purging is destructive and irreversible: confirm the export is complete and the business owners have signed off before you run it.

After the drain, journal reclamation is not instant. KahaDB cleanup runs periodically, so StorePercentUsage and the journal file count will step down over the following minutes rather than immediately.

One caveat if you run JBoss A-MQ or an older Classic line: the Red Hat knowledge base documents a “ghost message” problem when forcing DLQ expiry via the TimeStampPlugin, where the message count does not decrease and KahaDB space is not released until an explicit purge(). That behavior is documented for the TimeStampPlugin approach in the JBoss A-MQ 6.x line; the built-in expiration attribute on deadLetterStrategy used in this guide is not documented to suffer from it.

Prevention

  • Alert on any non-zero DLQ depth. Every DLQ message is a processing failure. Ticket-level on depth, escalate on growth rate relative to origin enqueue rate.
  • Treat DLQ expiration as a standard part of broker provisioning, with a retention value chosen deliberately, and always scoped through the dead-letter strategy rather than wildcard destination policies.
  • Monitor ExpiredCount on origin queues so you know whether the DLQ is receiving poison messages or expiry shedding; the fix for each is different.
  • Watch journal file count alongside store usage. It is the earliest visible symptom of pinning and has no JMX equivalent, so it needs a filesystem-level check.
  • Run a DLQ consumer or scheduled export job that categorizes arrivals by origin and exception, so “investigate the DLQ” is a standing process rather than an incident activity.
  • Enumerate destinations after any policy change to catch advisory-queue side effects early.

How Netdata helps

  • Netdata collects ActiveMQ destination metrics via JMX, so QueueSize, EnqueueCount, DequeueCount, and ExpiredCount for ActiveMQ.DLQ sit on the same dashboard as the broker-level store signals, making the DLQ-to-store correlation visible without manual Jolokia polling.
  • Per-second collection on StorePercentUsage and memory usage lets you see the slow multi-week climb that threshold-only checks miss, and confirm the step-down after a drain.
  • Correlating DLQ enqueue rate against origin queue ExpiredCount and dequeue rate distinguishes poison-message churn from expiry shedding, which determines whether the fix is in the strategy config or the consumer code.
  • Filesystem metrics on the KahaDB partition (disk usage, file counts) sit next to broker metrics, closing the store-limit-vs-physical-disk gap that the broker’s own accounting cannot see.
  • Alerting on DLQ depth and DLQ/origin enqueue ratio turns the “black hole” into a ticket queue, which is the actual prevention for this failure mode.