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-jvm-heap-exhaustion ▌

Operations Guides

ActiveMQ JVM heap exhaustion: OutOfMemoryError and the OOM kill

The broker was fine an hour ago. Now the process is gone, or it is alive but frozen: clients disconnected, the web console hangs, and the log shows java.lang.OutOfMemoryError or, if it runs in a container, nothing at all because the kernel killed the JVM with SIGKILL (exit code 137, i.e. 128+9).

This is ActiveMQ JVM heap exhaustion. It is distinct from the broker’s internal memoryUsage hitting 100%. That limit triggers producer flow control and blocks send() calls; this one kills or freezes the JVM itself. The confusing part is that the two are independent counters. You can have MemoryPercentUsage at 50% with plenty of headroom while JVM heap is at 97% and the next full GC never finishes. Non-message allocations (destination metadata, MBeans, connection and session state, cursor overhead, transport buffers) live on the heap too, and ActiveMQ’s flow control accounting does not protect them.

The failure is also abrupt at the end. Heap pressure degrades gradually until about 85-90% used after GC, then the JVM tips into a cliff: GC frequency explodes, pauses exceed the client inactivity timeout, clients disconnect and reconnect in a storm, the reconnection objects add more heap pressure, and the process either throws OutOfMemoryError or gets OOM-killed by the kernel or the container runtime.

What this means

The JVM heap holds everything the broker allocates: message bodies in cursors, destination and subscription metadata, connection state, JMX MBeans, pending ack records, transport state. The metric that matters is HeapMemoryUsage from java.lang:type=Memory, specifically the used value measured after a major GC. Instantaneous usage is meaningless: it oscillates constantly between minor GCs.

Two shapes of the problem:

  • Heap-after-GC trending upward over hours or days. Each major GC frees less than the last. This is a leak or a structural growth problem (destination explosion, unclosed resources). You have runway, but the direction is fixed.
  • Heap-after-GC pinned near max with GC distress. The JVM spends most of its time collecting and frees almost nothing. Once full GC pauses approach 30s they cross the default OpenWire wireFormat.maxInactivityDuration of 30000ms, and clients start timing out. This is the GC pause death spiral, and it ends in OOM or an unresponsive broker.

In containers there is a third shape: the JVM is fine by its own accounting, but total process memory (heap plus metaspace, thread stacks, direct buffers, JVM overhead) exceeds the container memory limit, and the kernel OOM killer SIGKILLs the process mid-write. No exception, no heap dump, no warning in the broker log. If the store was mid-write, you may also have a KahaDB recovery waiting for you on restart.

flowchart TD
  A[Heap pressure grows] --> B[Longer, more frequent GC pauses]
  B --> C{Pause > client inactivity timeout?}
  C -- no --> B
  C -- yes --> D[Mass client disconnects]
  D --> E[Reconnection storm]
  E --> F[New connection, session, subscription objects]
  F --> A
  A --> G[OutOfMemoryError or kernel OOM kill]
  G --> H[Unclean shutdown, possible KahaDB recovery on restart]

Common causes

CauseWhat it looks likeFirst thing to check
Memory leak (unclosed JMS resources, broker or client side)Heap-after-GC ratchets up over days; restarts buy time but the slope returnsCapture a heap dump and look for thousands of producer/consumer/session objects
Heap too small for the workloadHeap-after-GC sits at 80-90% within hours of a clean start, stable but highCompare -Xmx against connection count, destination count, and message throughput
Destination explosionDestination count grows with traffic; heap growth correlates with destinations, not messagesCount Queues and Topics on the Broker MBean; look for UUID or per-user names
MBean / ClassLoader leakHeap and metaspace grow; JMX queries get sluggish; embedded deployments after redeploysDestination count, MBean count, redeploy history
Large messages or VM-cursor floodsSudden heap jump during a burst; non-persistent topics with only non-durable subscribersCheck which destinations spiked and whether they use VM cursors
Container limit below JVM footprintProcess vanishes with no exception; exit code 137; OOM kill in kernel logCompare container limit to -Xmx plus JVM overhead; check dmesg

Quick checks

All read-only. Run these before touching anything.

# 1. Is the process alive, and how long has it been up?
ps -o pid,etime,rss,cmd -p $(pgrep -f activemq)

# 2. Was it OOM-killed? (kernel log, needs root)
dmesg -T | grep -i "killed process" | tail -5

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

# 4. GC activity: are we in GC distress?
jstat -gcutil $(pgrep -f activemq) 1000 5

# 5. ActiveMQ's own memory accounting (compare against heap!)
curl -s -u admin:admin \
  'http://localhost:8161/api/jolokia/read/org.apache.activemq:type=Broker,brokerName=localhost/MemoryPercentUsage'

# 6. How many destinations exist?
curl -s -u admin:admin \
  'http://localhost:8161/api/jolokia/read/org.apache.activemq:type=Broker,brokerName=localhost/Queues' \
  | python3 -c "import json,sys; print(len(json.load(sys.stdin)['value']))"

# 7. Thread count (leaks show here too)
curl -s -u admin:admin \
  'http://localhost:8161/api/jolokia/read/java.lang:type=Threading/ThreadCount'

# 8. Recent GC log lines, if GC logging is enabled
# (path is wherever your -Xlog:gc configuration points)
tail -50 /opt/activemq/data/gc.log

Check 5 is the one that surprises people. If MemoryPercentUsage is at 40% while heap-after-GC is at 95%, the broker’s message accounting has headroom and flow control will never fire, but the JVM is about to die. The two limits guard different things.

How to diagnose it

  1. Confirm which failure you had. OutOfMemoryError in activemq.log means the JVM threw and may still be running (badly). No exception plus a missing process plus exit code 137 or a Killed process line in dmesg means the kernel or container runtime did it. The response differs: a JVM OOM leaves you a live process to inspect; an OOM kill leaves you nothing but logs and a possibly dirty KahaDB.

  2. Check uptime before trusting any reading. Heap readings in the first 10 minutes after start are not diagnostic. Cursors page stored messages into memory after restart, and a single post-start reading above 90% is not evidence of a leak worth paging on. You need consecutive post-GC windows.

  3. Plot heap-after-major-GC, not instantaneous heap. From jstat -gcutil output, the OU (old gen used) value right after a full GC is the floor. If that floor rises across successive full GCs, you have a leak or structural growth. If it is flat but high, the heap is simply small.

  4. Correlate heap growth with a candidate driver. Pull destination count, connection count, and thread count over the same window. Heap rising in lockstep with destination count points at destination explosion (each destination adds its own MBeans plus internal structures). Heap rising with connection count points at a connection or session leak. Heap rising with neither points at message-path allocations (VM cursors, large messages) or a leak inside retained objects.

  5. Compare against ActiveMQ’s internal accounting. Read MemoryPercentUsage. If it is also near 100%, message backlog is the driver and flow control is either active or imminent; treat it as a memory-pressure incident first (see the memory limit guide). If it is low, the heap consumer is non-message state: destinations, MBeans, connections, sessions, or leaked objects.

  6. Capture evidence before restarting. If the process is alive, take a heap dump and a thread dump now. A restart destroys the evidence and, with a leak, only resets the clock.

    # Heap dump (large file; pauses the JVM, and the :live option forces a
    # full GC first. On a broker already in GC distress this can be the
    # final straw, so plan the timing.)
    jmap -dump:live,format=b,file=/tmp/broker-heap.hprof $(pgrep -f activemq)
    
    # Thread dump (cheap, safe)
    jstack $(pgrep -f activemq) > /tmp/broker-threads.txt
    

    In the heap dump, thousands of retained producer, consumer, or session objects point at unclosed JMS resources. Destination or MBean objects dominating retained heap point at destination explosion.

  7. If it was a container OOM kill, audit the sizing. The JVM footprint is -Xmx plus metaspace, thread stacks, direct buffers, and JVM internals. If the container limit is at or below -Xmx, the kernel will kill the process under load even when the heap itself is healthy.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
Heap used after major GC (HeapMemoryUsage.used sampled post-GC)The only honest measure of heap pressureTrending upward over days; >85% after GC
Full GC frequency and duration (CollectionCount, CollectionTime)GC distress is the cliff-edge behaviorFull GC >1 per 5 min; pauses >2s; >10s causes disconnects
MemoryPercentUsage (broker)Distinguishes message-driven pressure from heap-driven pressureLow while heap is high: non-message allocations are eating the heap
Total destination countEach destination adds MBeans and heap-resident stateGrowth correlated with traffic; >2x expected count
Connection count and thread countConnection/session leaks consume heap per clientMonotonic growth without matching workload
Container memory vs limitKernel OOM kill gives no JVM-side warningRSS plus non-heap approaching the cgroup limit

A workable threshold ladder: after a major GC, you want at least 30% of max heap free. Under 20% free is yellow, under 10% is critical. PAGE only when heap exceeds 95% after GC across multiple consecutive major-GC windows with GC distress present and uptime over 600s. A single reading, or any reading right after startup, pages nobody correctly.

Fixes

If it is happening right now (process alive, in GC distress)

The spiral feeds on reconnections. If you can shed load, do it: disconnect non-essential consumers and producers to cut the allocation rate. Do not restart as a first move unless the broker is already unrecoverable, because you lose the heap dump and thread dump that tell you why it happened. If clients have already mass-disconnected and the broker is oscillating between GC pauses and reconnection storms, a restart is usually the only way back, so capture diagnostics first, then restart, then expect KahaDB recovery time proportional to journal and index size if the shutdown was unclean.

Heap too small

Raise -Xmx to match the actual workload (connections, destinations, message throughput). This requires a restart. Keep ActiveMQ’s memoryUsage limit at roughly 60-70% of JVM max heap; the remaining 30-40% is exactly the headroom that non-message allocations need. Setting memoryUsage equal to max heap removes the buffer and makes JVM OOM more likely, not less.

Memory leak from unclosed JMS resources

The heap dump tells you which objects are retained. The fix is in the application: close sessions, producers, and consumers, or fix the pooling configuration that pins them. Broker-side restarts only reset the timer.

Destination explosion

Identify the naming pattern (UUIDs, user IDs, timestamps), fix the application to stop creating a destination per entity, then clean up: configure gcInactiveDestinations and schedulePeriodForDestinationPurge so empty inactive destinations are removed, and purge the existing empty ones via JMX. Advisory topics multiply the count; disable advisories where you do not use them.

Container OOM kills

Set the container memory limit comfortably above the JVM’s total footprint, not above -Xmx alone. Leave room for metaspace, thread stacks (one transport thread per connection with the default TCP transport), and direct buffers. If you cannot raise the limit, lower -Xmx so the JVM stays inside the cgroup.

GC tuning

For heaps above 4GB, G1 is the standard recommendation. Whatever collector you run, enable GC logging (-Xlog:gc*:file=gc.log:time on JDK 11+); post-incident, the GC log is the most useful artifact you will have. Tuning GC pauses treats the symptom; if heap-after-GC keeps ratcheting up, only fixing the driver stops the incident from recurring.

Prevention

  • Alert on the floor, not the spikes. Track heap-used-after-major-GC as a first-class metric. Page at >95% sustained with GC distress; ticket at >85%; plan at >70%.
  • Monitor both memory signals independently. JVM heap and MemoryPercentUsage answer different questions. Alerting on only one is the classic mistake.
  • Cap destination growth. Alert when destination count exceeds 2x expected, and enable inactive-destination GC in activemq.xml.
  • Enable GC logging permanently. You cannot reconstruct GC history after an OOM without it.
  • Size containers for JVM footprint. Limit = -Xmx plus overhead, with margin. Validate with a load test that pushes connection and destination counts to production levels.
  • Load-test for the leak shape. A soak test over hours, watching heap-after-GC, catches resource leaks that functional tests never see.

How Netdata helps

  • Netdata charts JVM heap usage per memory pool, so you can watch the post-GC floor trend rather than eyeballing instantaneous usage spikes.
  • GC collection count and time per collector are charted alongside heap, making the “frequency rising, pause duration rising” distress pattern visible in one view.
  • Broker-level metrics like MemoryPercentUsage, destination count, and connection count sit on the same dashboard as JVM metrics, which is the exact correlation you need to separate message-driven pressure from heap-driven pressure.
  • Netdata’s ML anomaly detection flags the slow upward ratchet of heap-after-GC days before it crosses a static threshold, which is when you still have runway to act.
  • Process and cgroup memory charts catch the container case: RSS plus non-heap drifting toward the cgroup limit while JVM heap looks fine.
  • Alerts with hysteresis let you encode the page-safe rule (sustained, post-GC, uptime-gated) instead of paging on a single noisy reading.