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 / mongodb / mongodb-memory-rss-growing

Operations Guides

MongoDB RSS growing without cache growth: leaks, threads, and tcmalloc fragmentation

db.serverStatus().mem.resident climbs while WiredTiger cache utilization stays flat and the host is not swapping. Virtual memory is larger than RSS by design and is not an alert target. Only RSS reflects physical memory pressure. When RSS grows without cache growth, the problem lives outside the storage engine.

This pattern points to one of three areas: tcmalloc heap retention and fragmentation, per-connection thread stack accumulation, or unbounded internal allocations from cursors, plan caches, or aggregation pipelines. Each connection reserves roughly 1 MB of stack space, so a connection storm can add gigabytes of RSS in minutes. TCMalloc caches freed memory in per-thread or per-CPU arenas, which inflates RSS independently of the WiredTiger cache.

Version-specific allocator changes complicate the picture. MongoDB 8.0 switched to a per-CPU tcmalloc implementation that reduces fragmentation by approximately 18 percent and requires Transparent Huge Pages (THP) to be enabled for the per-CPU caches to function correctly. MongoDB 7.0 introduced a confirmed memory leak in the Slot-Based Execution plan cache (SERVER-96924). Container deployments add another wrinkle: MongoDB may detect host RAM instead of the container limit, leaving the cache unbounded relative to the cgroup.

Use the read-only checks below to isolate the source before restarting. A restart drops RSS and erases the diagnostic state you need to prevent recurrence.

What this means

WiredTiger cache is a managed buffer pool with its own memory budget (cacheSizeGB). When cache utilization is flat but RSS rises, the additional memory comes from the C++ heap (tcmalloc), thread stacks, or internal data structures. TCMalloc retains deallocated blocks in per-thread or per-CPU caches to reduce lock contention. This cached memory counts toward RSS but is invisible to WiredTiger.

MongoDB uses one thread per connection. Each backend thread reserves up to 1 MB of virtual address space for its stack, with typical usage in the tens to hundreds of kilobytes. At thousands of connections, thread stacks alone can consume multiple gigabytes of RSS.

Internal structures can also balloon. Aggregation pipeline stages allocate memory outside the WiredTiger cache, capped at 100 MB per stage by default. In MongoDB 6.0 and later, the allowDiskUseByDefault parameter (default: true) lets stages spill to disk instead of erroring when they exceed this cap. Cursors with noCursorTimeout hold snapshots open, pinning memory until they close. The query plan cache, particularly in MongoDB 7.0, has exhibited unbounded growth under specific query patterns.

flowchart TD
    A[RSS growing] --> B{Cache flat?}
    B -->|Yes| C[Non-cache growth]
    C --> D[tcmalloc retention]
    C --> E[Connection threads]
    C --> F[Cursor leaks]
    C --> G[Plan cache leak]
    C --> H[Aggregation memory]
    B -->|No| I[See cache pressure guides]

Common causes

CauseWhat it looks likeFirst thing to check
TCMalloc heap retention and fragmentationRSS exceeds active allocations; pageheap_free_bytes plus total_free_bytes is highdb.serverStatus().tcmalloc
Connection thread stack accumulationRSS spikes correlate with connection count spikes; current in the thousandsdb.serverStatus().connections
Cursor or aggregation memory leakopen.noTimeout or open.total growing; long-running aggregationsdb.serverStatus().metrics.cursor and db.currentOp()
Plan cache leak (MongoDB 7.0 SBE)Unbounded RSS growth on 7.0 with complex $in arrays; plan cache size climbingdb.serverStatus().metrics.query.planCacheTotalSizeEstimateBytes
Container cache misconfigurationRSS approaches container memory limit while cacheSizeGB is sized for host RAMdb.serverStatus().wiredTiger.cache maximum bytes vs cgroup limit

Quick checks

# Compare RSS to WiredTiger cache limit
mongosh --quiet --eval 'var s=db.serverStatus(); print("RSS MB: " + s.mem.resident); print("Cache max GB: " + (s.wiredTiger.cache["maximum bytes configured"]/1024/1024/1024).toFixed(1));'
// Check tcmalloc retained memory
var tc = db.serverStatus().tcmalloc;
print("Retained bytes: " + (tc.pageheap_free_bytes + tc.total_free_bytes));
print("Heap size to allocated ratio: " + (tc.generic.heap_size / tc.generic.current_allocated_bytes).toFixed(2));
// Check connection count and churn
var c = db.serverStatus().connections;
printjson({current: c.current, available: c.available, totalCreated: c.totalCreated});
// Check cursor state
printjson(db.serverStatus().metrics.cursor);
// Check plan cache size
print("Plan cache bytes: " + db.serverStatus().metrics.query.planCacheTotalSizeEstimateBytes);
// Find long-running operations
db.currentOp({ "active": true, "secs_running": { "$gt": 60 } }).inprog.forEach(function(op) {
  print(op.opid + " | " + op.op + " | " + op.secs_running + "s | " + op.ns);
});
# Check cgroup memory limit if containerized
cat /sys/fs/cgroup/memory/memory.limit_in_bytes 2>/dev/null || cat /sys/fs/cgroup/memory.max 2>/dev/null

How to diagnose it

  1. Confirm the cache is flat. Sample db.serverStatus().wiredTiger.cache fill ratio and dirty ratio over time. Stable values below 80 percent rule out cache-driven growth.
  2. Compare RSS to the expected baseline. Expected RSS is approximately cacheSizeGB plus 500 MB to 1 GB of internal overhead plus connections.current multiplied by roughly 1 MB. If actual RSS exceeds this by more than 20 percent, continue.
  3. Check tcmalloc stats. Sum pageheap_free_bytes and total_free_bytes. If this sum represents a large portion of the RSS gap, the cause is fragmentation or allocator caching rather than a leak.
  4. Check connection count. If current is high (thousands) and correlates with the RSS timeline, thread stacks are the likely source. A high totalCreated delta indicates churn.
  5. Check cursor state. Elevated open.noTimeout or growing open.total without corresponding workload means cursors are leaking. Each one may hold a snapshot and memory.
  6. Check plan cache size on MongoDB 7.0. Continuous growth of planCacheTotalSizeEstimateBytes with complex $in arrays suggests the SBE plan cache leak (SERVER-96924).
  7. Check for aggregation memory pressure. Review db.currentOp() for long-running aggregations. In MongoDB 6.0 and later, allowDiskUseByDefault defaults to true, so pipelines spill to disk by default when exceeding the 100 MB per-stage limit, but long-running pipelines still hold memory while executing.
  8. Verify container memory limits. Ensure cacheSizeGB is sized for the container limit, not host RAM.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
mem.residentPhysical memory consumed by mongodExceeds (cacheSizeGB + 2GB + connections x 1MB) by more than 20 percent
tcmalloc retained bytesAllocator-cached memory inflates RSS independently of cachepageheap_free_bytes + total_free_bytes grows steadily or exceeds 20 percent of RSS
connections.currentEach connection adds roughly 1 MB stack RSSSustained count greater than 1000 or rapid spikes
metrics.cursor.open.noTimeoutLeaked cursors pin snapshots and memoryCount greater than 10 or growing steadily
metrics.query.planCacheTotalSizeEstimateBytesPlan cache leak indicator on affected versionsMonotonic growth without workload change
wiredTiger.cache fill ratioRules out cache-driven growthFlat while RSS climbs
opcounters.getmoreHigh cursor iteration rates can indicate leaked or large result setsSpike without corresponding query increase
currentOp max durationLong-running aggregations allocate outside cacheOperations exceeding 300 seconds

Fixes

TCMalloc fragmentation and retention

High pageheap_free_bytes plus total_free_bytes with stable current_allocated_bytes indicates fragmentation, not a leak.

  • MongoDB 8.0: Enable THP, which is required for the per-CPU tcmalloc implementation to function correctly. Ensure Restartable Sequences (rseq) are available. If glibc registered rseq first and tcmalloc fell back to per-thread caches, set GLIBC_TUNABLES=glibc.pthread.rseq=0 before starting mongod.
  • Prior to 8.0: Disable THP to reduce latency spikes and fragmentation. On most Linux distributions, toggle THP via /sys/kernel/mm/transparent_hugepage/enabled.
  • If retained memory threatens OOM: Schedule a rolling restart during a maintenance window. Disruptive but effective.

Connection and thread stack overhead

Reduce connection count to shrink the aggregate stack footprint.

  • Review driver pool sizes. Lower maxIncomingConnections if the server accepts more than the workload needs.
  • Fix connection churn. A high totalCreated delta means pools are destroying and recreating connections. Check for network blips, DNS issues, or election storms causing mass reconnects.
  • Tradeoff: Lowering limits may cause connection refused errors during spikes, but prevents memory exhaustion.

Cursor and aggregation leaks

  • Kill leaked cursors. Identify long-running noTimeout cursors in db.currentOp() and terminate them with db.killOp() if safe.
  • Fix application code to close cursors explicitly and avoid noCursorTimeout unless necessary.
  • For aggregations that risk exceeding memory limits, enable allowDiskUse: true. This spills intermediate data to disk and avoids OOM, though it increases latency. In MongoDB 6.0 and later, allowDiskUseByDefault (default: true) controls whether aggregations spill to disk by default.
  • Tradeoff: Disk-based aggregation increases I/O load and slows pipeline execution.

Plan cache leak (MongoDB 7.0)

  • Upgrade to MongoDB 8.0, which resolves SERVER-96924.
  • If upgrading is not viable, disable the Slot-Based Execution engine by setting internalQueryFrameworkControl to forceClassicEngine as a server parameter.
  • As an interim measure, schedule weekly rolling restarts to truncate the plan cache.
  • Tradeoff: Disabling SBE may change query plans and performance characteristics. Test before applying.

Container memory limits

  • Explicitly set cacheSizeGB in mongod.conf based on the container memory limit, not host RAM.
  • Leave headroom for connection stacks and heap overhead (typically cacheSizeGB plus 2 to 3 GB).

Prevention

  • Trend RSS, cache fill, and tcmalloc retained bytes together. A widening gap between RSS and cache used predicts allocator pressure before it becomes critical.
  • Monitor connection count and totalCreated delta. Alert on connection churn, not just max connections.
  • Avoid noCursorTimeout cursors in application code. Close cursors explicitly and use standard timeouts.
  • Size cacheSizeGB explicitly in containers and standalone deployments so MongoDB does not default to host RAM.
  • For MongoDB 7.0 deployments using complex aggregations with large $in arrays, plan an upgrade path to 8.0.

How Netdata helps

  • Charts mem.resident alongside wiredTiger.cache fill ratio, exposing divergence between RSS and cache.
  • Tracks connection count and churn.
  • Collects tcmalloc memory statistics where exposed, distinguishing allocator-retained bytes from active allocations.
  • High-resolution operation latency and queue depth metrics help identify cursor leaks and aggregation pressure.
  • Container-aware memory charts reveal cgroup limit pressure even when the process sees host RAM.
The Netdata solution

MongoDB monitoring with Netdata

Netdata monitors MongoDB with per-second metrics and automatic dashboards. Watch WiredTiger cache pressure, oplog window, connection counts, checkpoint stalls, and replication health in one place, correlated with the underlying host.