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 / rabbitmq / rabbitmq-channel-leak-churn

Operations Guides

RabbitMQ channel leak and churn: the channel-per-message anti-pattern

Your connection count is flat and queue depths look normal, but broker memory is creeping up and the Erlang process count keeps climbing. That is the classic shape of a RabbitMQ channel leak: a slow resource drain that hides behind a stable connection count until the node runs out of processes or memory.

Channels are where all AMQP work happens: publishing, consuming, acknowledging. Each channel is a separate Erlang process on the broker. They are lightweight but not free. When a client opens a new channel per message instead of reusing long-lived channels, or recreates a channel on every exception, the broker pays for setup and teardown on every operation. If channels open faster than they close, the leak accumulates Erlang processes and memory indefinitely.

This article covers how to tell channel churn (high open and close rates, balanced) from a channel leak (opens consistently outpacing closes), how to find the offending client, and how to fix the application pattern that causes it.

What this means

RabbitMQ multiplexes many channels over a single TCP connection. The intended pattern is a small number of long-lived channels per connection: most applications can use a single-digit number of channels per connection, commonly one channel per thread. A connection with hundreds or thousands of channels, or a broker whose channel open rate never settles, signals a client-side problem.

There are two distinct failure modes, and they need different responses:

  • Channel churn: channels created and channels closed are both consistently high. The total channel count stays roughly stable, but the broker burns CPU and scheduler time on constant setup and teardown. Each channel open is a network round trip, so the client also slows itself down.
  • Channel leak: the channel creation rate is consistently higher than the close rate. The total channel count grows without bound. Each leaked channel is an Erlang process with a heap, so proc_used and memory grow until the node degrades or crashes.
flowchart TD
    A[channel_created rate high?] -->|no| B[Healthy baseline]
    A -->|yes| C{channel_closed rate
tracks created?} C -->|yes, total channel count stable| D[Channel churn:
channel-per-message anti-pattern] C -->|no, opens outpace closes| E[Channel leak:
growing channel count,
proc_used and memory climbing] D --> F[Find connection with
high channel count or churn] E --> F F --> G[Fix client: reuse long-lived channels,
one channel per thread]

A useful first heuristic from the field: a channels-per-connection ratio above 100 suggests channels are not being closed properly. Most healthy applications sit well below that.

Common causes

CauseWhat it looks likeFirst thing to check
Channel-per-message anti-patternHigh channel_created and channel_closed rates tracking each other; publish throughput lower than expectedchurn_rates in /api/overview; inspect publisher code for channel creation inside the publish path
Client recreates channel on every exceptionChurn spikes correlate with bursts of channel_error log entries; closed channels replaced immediatelyBroker log for channel exceptions (PRECONDITION_FAILED, ACCESS_REFUSED)
Channel leak: opened but never closedChannel count grows monotonically; one or few connections hold hundreds or thousands of channelsrabbitmqctl list_connections name channels, sorted by channel count
Declaring topology per operationChannel churn plus elevated queue_declared churn; client re-declares queues/exchanges on every publishchurn_rates.queue_declared in /api/overview
Consumer channel closed with unacked messagesSudden bursts of requeued messages; elevated redeliver rate after channel closesPer-queue redeliver rate in message_stats
Short-lived runtime (PHP and similar)High connection and channel churn together; both counts cycle with request volumeCheck whether connection churn is also high; if so, the problem is at the connection level, not channels

Quick checks

All of these are read-only and safe to run during an incident. Note that list_connections, list_channels, and full /api/connections iteration are expensive on nodes with very many connections; run them once, not in a tight loop.

# 1. Channel churn rates: created vs closed
curl -s -u guest:guest http://localhost:15672/api/overview | jq '.churn_rates | {channel_created, channel_closed}'

# 2. Total channels vs total connections
curl -s -u guest:guest http://localhost:15672/api/overview | jq '.object_totals | {connections, channels}'

# 3. Per-connection channel count: find the fattest connections
rabbitmqctl list_connections name channels

# 4. Erlang process usage: is the leak approaching the process limit?
curl -s -u guest:guest http://localhost:15672/api/nodes | jq '.[] | {name, proc_used, proc_total}'

# 5. Memory trend
curl -s -u guest:guest http://localhost:15672/api/nodes | jq '.[] | {name, mem_used, mem_limit}'

# 6. Channel errors in the broker log (recreate-on-exception pattern)
grep -i "channel_error\|PRECONDITION_FAILED\|ACCESS_REFUSED" /var/log/rabbitmq/rabbit@$(hostname).log | tail -20

# 7. Individual channel detail for a suspicious connection
rabbitmqctl list_channels connection name number transactional confirm consumer_count

Two things to look for immediately. In check 1, if channel_created is persistently higher than channel_closed, you have a leak; if they are both high and roughly equal, you have churn. In check 3, any connection holding hundreds of channels is your primary suspect, because most applications need a single-digit number per connection.

How to diagnose it

  1. Confirm the symptom class. Pull churn_rates.channel_created and churn_rates.channel_closed a few times over several minutes. Opens consistently above closes means a leak. Both high and balanced means churn. Balanced and low means this article is not your problem.

  2. Check whether the connection layer is also churning. Look at churn_rates.connection_created and connection_closed. If connection churn is high too, the client is recreating whole connections, and channels are just going along for the ride. Treat it as a connection problem first (see the connection storm guide linked below). Short-lived runtimes such as PHP legitimately produce high connection and channel churn unless a proxy or pooling layer is used; that is an architecture property, not a bug.

  3. Attribute channels to connections. Run rabbitmqctl list_connections name channels and sort by channel count. A leak almost always concentrates: one or two connections accumulate channels while everyone else looks normal. Compare the count against your expected pattern (one channel per thread is a common healthy design).

  4. Correlate with resource signals. For a leak, check proc_used / proc_total and mem_used / mem_limit. Each channel is an Erlang process, so a leak shows up directly in process count and in per-process heap memory. This is what turns a “weird channel count” into a real incident: the default process limit is large (1,048,576), but a fast leak with a heavy per-channel footprint can exhaust memory long before the process table.

  5. Correlate churn with errors. If channels churn in bursts, grep the broker log for channel exceptions. A common pattern is a client that hits a protocol error (for example re-declaring a queue with different arguments, which raises PRECONDITION_FAILED), lets the channel die, and opens a fresh one on the next operation. The churn rate then tracks the error rate exactly.

  6. Check the unacked side effect. When a consumer’s channel closes, all of its unacknowledged messages are requeued at once. If your churn involves consumer channels, look at per-queue redeliver rates: elevated redelivery after channel closes means your consumers are redoing work, and the churn is costing you throughput as well as broker resources.

  7. Identify the client. Use the connection name (many client libraries let applications set a connection_name, visible as user_provided_name in listings) and peer host to find the application instance. The fix is in the client code, not on the broker.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
churn_rates.channel_created vs channel_closedDirect measure of churn vs leakCreated > closed sustained (leak); both high and equal (churn); created > 3x rolling baseline
object_totals.channels vs object_totals.connectionsTotal channel footprint relative to connectionsChannels/connections ratio > 100
Per-connection channel countAttributes the problem to a specific clientA single connection holding hundreds or thousands of channels
proc_used / proc_totalEach channel is an Erlang process; leaks consume the process tableRatio > 0.8 sustained
mem_used / mem_limitLeaked channels hold per-process heap memorySlow monotonic growth uncorrelated with queue depth
Per-queue redeliver rateConsumer channels closing requeue all unacked messagesRedeliver spikes coinciding with channel closes
Channel errors in broker logExplains recreate-on-exception churnPRECONDITION_FAILED or ACCESS_REFUSED bursts matching churn spikes
churn_rates.connection_created/closedSeparates channel-level from connection-level churnBoth high together means the problem is connections, not channels

One sampling caveat: brief lifecycle spikes between scrapes are invisible, whether you read rates from the management API or compute them from cumulative counters. Sample over at least a minute, and treat a single high reading as a prompt to re-sample, not a conclusion.

Fixes

Fix the channel-per-message pattern

The actual fix is in the application: create channels once and reuse them for the life of the connection. The canonical healthy shape is one connection per application process and one channel per thread (or per coroutine, depending on the client). Channels are cheap to keep open and expensive to create, since every open is a network round trip.

Concretely, in the client code:

  • Move channel creation out of the publish/consume hot path and into initialization.
  • Pool channels if the workload is concurrent; borrow and return rather than open and close.
  • Do not share a single channel instance across threads. The major client libraries state this explicitly; concurrent use on one channel causes framing errors that themselves trigger channel closures and more churn.
  • On channel exception, recreate the channel deliberately (with backoff and logging), not implicitly on every retry of the failed operation.

Contain an active leak before fixing the code

If a leak is growing right now and a code fix is not yet deployed:

  • Restart the offending application instances, not the broker. Closing the client connection destroys all of its channels and reclaims the Erlang processes and memory on the broker side. Restarting the broker is the wrong tool: it disrupts every healthy client and does nothing to fix the client bug.
  • Close the leaking connection from the broker side as a surgical alternative, via the management API or UI. The client will reconnect (if it has reconnect logic) with a clean channel slate. Be aware this requeues any unacknowledged messages on that connection’s consumer channels.
  • Set channel_max on the broker as a guardrail. This limits the number of channels per connection; a leaking client then fails fast with a negotiation error instead of silently consuming the node. Note the failure mode moves to the client: it will start seeing channel-open failures. The broker default is channel_max = 2047 per connection, so the guardrail is on but far above any healthy pattern; set it deliberately to a smaller value (0 means unlimited, which the documentation explicitly warns is dangerous).

Tradeoff to be aware of: closing a consumer connection with a large unacked backlog requeues all of those messages at once, which produces a delivery burst. With sane prefetch values this is manageable; with prefetch in the thousands, expect a visible redelivery spike.

Fix recreate-on-exception churn

If the churn traces to channel exceptions, fix the underlying error, not the retry loop. The two common broker-log signatures are PRECONDITION_FAILED (re-declaring a queue or exchange with mismatched arguments) and ACCESS_REFUSED (permissions). Align declarations across all application instances so they use identical queue arguments, and declare topology once at startup rather than on demand.

Prevention

  • Adopt a channel lifecycle convention across services: one connection per process, one long-lived channel per thread, topology declared once at startup. Put it in the client wrapper library so individual services cannot easily deviate.
  • Alert on the ratio, not just the totals. Total channel count alerts miss leaks hidden by growing connection counts. Alert on channels-per-connection ratio (warning above a value well under 100, tuned to your baseline) and on channel_created exceeding channel_closed sustained.
  • Alert on churn relative to baseline. Channel creation rate above 3x the rolling baseline sustained for a few minutes catches the anti-pattern at deployment time, when it is introduced, rather than weeks later when memory runs out.
  • Track proc_used / proc_total and mem_used as backstops. Even if the churn alerts miss a slow leak, the process and memory ratios will eventually catch it. A monotonic memory climb uncorrelated with queue depth should always trigger a channel/connection investigation.
  • Set channel_max deliberately so a future leaking client fails fast instead of draining the node.
  • Keep redeliver rates visible. Consumer channel churn shows up as redelivery before it shows up anywhere else.

How Netdata helps

  • Netdata’s RabbitMQ collector surfaces channel and connection churn rates, so you can see channel_created diverging from channel_closed (leak) or both spiking together (churn) on a per-second timeline.
  • Object totals for connections and channels are charted together, which makes the channels-per-connection ratio visible without manual calculation.
  • Erlang process usage and node memory are collected alongside AMQP objects, so you can correlate a rising channel count directly with proc_used and mem_used growth and confirm the leak’s blast radius.
  • Message statistics including redeliver rates sit on the same dashboards, letting you tie consumer channel churn to its requeue cost.
  • Because churn often starts at a deployment, per-second resolution helps you match the churn onset to the exact deploy window instead of discovering it from a memory alarm days later.