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 / cockroachdb / cockroachdb-out-of-memory-oom

Operations Guides

CockroachDB out of memory: sys_rss, --cache, --max-sql-memory, and the OOM killer

A CockroachDB node disappears. No graceful shutdown, no drain sequence, no error in the SQL layer. The process is gone, and dmesg shows the kernel OOM killer selected it. Or in Kubernetes, the pod restarts with reason OOMKilled.

The root cause is almost always a mismatch between what CockroachDB thinks it can allocate and what the container or host actually allows. CockroachDB partitions its memory into two manually-sized pools: the Pebble block cache (--cache) and the SQL execution budget (--max-sql-memory). The Go garbage collector only manages the Go heap. CGo allocations, primarily the Pebble block cache and memtables, are manually managed. When the sum of these pools plus runtime overhead exceeds the container or host limit, the OOM killer intervenes.

The SQL error 53200 (“memory budget exceeded”) is the early warning. It fires when --max-sql-memory is exhausted, before the process itself is killed. If you see a burst of 53200 errors followed by a process termination, the diagnosis is straightforward. The harder cases are silent: CGo memory grows steadily, RSS climbs, and the first visible symptom is the OOM kill itself.

What this means

CockroachDB’s memory model has three distinct layers tracked by separate metrics:

  • Go heap (sys_go_allocbytes): SQL execution buffers, connection state, metadata, goroutine stacks. Managed by the Go GC.
  • CGo allocations (sys_cgo_allocbytes): primarily the Pebble block cache and memtables. Manually managed, not subject to Go GC.
  • Total RSS (sys_rss): everything, including Go runtime overhead, memory-mapped files, and resident shared libraries.

The critical diagnostic question is which layer is growing. If sys_cgo_allocbytes grows while sys_go_allocbytes stays flat, the storage engine is the consumer. If sys_go_allocbytes grows, SQL execution is the consumer. If both are stable but RSS keeps climbing, the overhead (Go runtime, page cache, or a memory leak outside both accounting systems) is the problem.

The official sizing constraint is:

--cache + --max-sql-memory + --max-tsdb-memory <= 75% of available memory

The remaining 25% covers the Go runtime, OS page cache, and burst allocations. RSS should stay below 75% of the available memory, whether that is host RAM or a container cgroup limit, to leave headroom.

flowchart TD
    A["--cache (CGo: Pebble block cache)"] --> D["sys_rss"]
    B["--max-sql-memory (Go heap: SQL buffers)"] --> D
    C["Go runtime + Raft + OS page cache"] --> D
    D --> E{"RSS approaches limit"}
    E --> F["Go GC runs harder: sys_gc_pause_ns climbs"]
    F --> G["53200: SQL memory budget exceeded"]
    F --> H["GC pauses spike: Raft liveness at risk"]
    E --> I["RSS exceeds cgroup or host limit"]
    I --> J["OOM killer terminates cockroach"]

Common causes

CauseWhat it looks likeFirst thing to check
–cache and –max-sql-memory exceed container limitRSS steadily climbs to the limit and process is killed. No 53200 errors.Verify the arithmetic: does --cache + --max-sql-memory + --max-tsdb-memory fit in 75% of the container limit?
cgroups v2 mis-detectionCockroachDB sizes pools as a percentage of host RAM, not the container limit. RSS exceeds the pod memory limit.Check whether --cache and --max-sql-memory are set as percentages or explicit byte values.
Memory-intensive queriessql_mem_root_current spikes. 53200 errors appear before the OOM kill. SQL latency P99 jumps.Check sql_mem_root_current trend and look for large sorts, hash joins, or full scans.
CGo / Pebble block cache leaksys_cgo_allocbytes grows monotonically while sys_go_allocbytes stays flat. CGo allocated exceeds the configured --cache.Compare sys_cgo_allocbytes against the configured --cache size over time.
Backup or bulk operationOOM coincides with a BACKUP, RESTORE, IMPORT, or debug zip generation. RSS spikes during the job.Check crdb_internal.jobs for running backup or import jobs at the time of the crash.

Quick checks

# Check RSS against the container or host limit
curl -s http://localhost:8080/_status/vars | grep -E 'sys_(rss|go_allocbytes|cgo_allocbytes)'

# Check SQL memory budget utilization
curl -s http://localhost:8080/_status/vars | grep sql_mem_root_current

# Check Go GC pause duration (cumulative counter) and frequency
curl -s http://localhost:8080/_status/vars | grep -E 'sys_gc_(pause|count)'

# Check SQL failure counter (total failures, not broken down by code)
curl -s http://localhost:8080/_status/vars | grep sql_failure_count

# Check the process flags to verify --cache and --max-sql-memory values
ps -p $(pgrep -x cockroach) -o args=

# Check OS-level RSS
cat /proc/$(pgrep -x cockroach)/status | grep VmRSS

# Check OOM killer history
dmesg -T | grep -i "out of memory\|oom kill\|killed process"

# Check container memory limit (cgroups v2, then v1 fallback)
cat /sys/fs/cgroup/memory.max 2>/dev/null || cat /sys/fs/cgroup/memory/memory.limit_in_bytes

# Check goroutine count (each has a small starting stack)
curl -s http://localhost:8080/_status/vars | grep sys_goroutines

To confirm 53200 errors specifically, grep the CockroachDB logs rather than relying on the aggregate sql_failure_count counter:

# Check for 53200 errors in logs
grep -r "53200\|memory budget exceeded" /var/lib/cockroach/logs/ 2>/dev/null || \
  cockroach sql --insecure --execute "SELECT count(*) FROM [SHOW CLUSTER STATEMENTS] WHERE error = '53200'"

How to diagnose it

  1. Determine which memory layer is growing. Pull sys_rss, sys_go_allocbytes, and sys_cgo_allocbytes over a time window that includes the crash. If you only have post-crash data, check monitoring history for the trend leading up to the event.

  2. Check the sizing arithmetic. Identify the effective --cache, --max-sql-memory, and --max-tsdb-memory values from the process flags. Compute --cache + --max-sql-memory + --max-tsdb-memory. Compare against 75% of the actual memory available to the process (container limit, not host RAM).

  3. Verify cgroup detection. In container environments, CockroachDB may detect host RAM instead of the container limit. This is common with cgroups v2, where memory.max can report the string “max” inside child cgroups that are actually constrained by a parent. If --cache=25% and --max-sql-memory=25% resolve against host RAM instead of the pod limit, the process will be OOM killed.

  4. Check for 53200 errors preceding the crash. A burst of 53200 errors means the SQL memory budget was exhausted first. This points to memory-intensive queries rather than a cache sizing problem. Cross-reference with sql_mem_root_current to confirm the SQL budget was near its ceiling.

  5. Compare CGo allocated against the configured cache. Under normal conditions, CGo allocated should not exceed the --cache size, and CGo total should not exceed it by more than 15%. If CGo allocated significantly exceeds the cache, the storage engine may be leaking memory through the Pebble block cache.

  6. Check the overhead gap. Compute sys_rss minus the sum of Go total (sys_go_totalbytes) and CGo total (sys_cgo_totalbytes). A gap exceeding 100 MB suggests unaccounted memory growth outside both accounting systems. A growing gap indicates the overhead is increasing over time.

  7. Review GC behavior. sys_gc_pause_ns is a cumulative counter. Divide the delta between scrapes by the delta in sys_gc_count over the same window to get the average pause per GC cycle. Average pauses exceeding 500ms indicate significant memory pressure. Sustained GC pauses approaching the 3-second liveness heartbeat interval (with a 6-second liveness expiry) risk Raft leader changes and node liveness loss before the OOM kill even happens, creating a pattern where the node oscillates between alive and dead.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
sys_rssTotal process memory. The metric the OOM killer sees.Exceeding 75% of available memory (host or cgroup limit).
sys_go_allocbytesGo heap size. SQL execution, metadata, goroutine stacks.Growing faster than GC can reclaim, or exceeding --max-sql-memory by more than 100%.
sys_cgo_allocbytesCGo allocations, primarily Pebble block cache. Manually managed, not GC-controlled.Growing while Go heap is flat (storage leak), or exceeding the configured --cache size.
sql_mem_root_currentSQL execution memory relative to --max-sql-memory.Exceeding 70% of the budget with an upward trend.
sys_gc_pause_nsCumulative GC pause time. Long pauses threaten Raft liveness.Average per-cycle pause exceeding 500ms when computed from deltas of this counter and sys_gc_count.
sql_failure_countTotal SQL failure counter. Does not break down by error code.Sudden increase correlating with memory pressure. Confirm 53200 errors via logs.
sys_goroutinesGoroutine count. Each has a small starting stack that can grow.Monotonic growth without workload increase, or exceeding 100,000.

Fixes

Reduce –cache or –max-sql-memory

If the sizing arithmetic does not fit within the container or host limit, reduce one or both values. The constraint is --cache + --max-sql-memory + --max-tsdb-memory <= 75% of available memory. Reducing --cache hurts read performance (more cache misses, higher KV read latency, more disk I/O). Reducing --max-sql-memory causes large queries to spill to disk sooner or be rejected with 53200 errors.

Both reductions have real performance cost. The safer approach is to increase the container or host memory if the workload requires the current cache and SQL memory sizes.

Set explicit byte values in containers

Do not rely on percentage-based --cache and --max-sql-memory values in containerized deployments. CockroachDB’s cgroup memory detection is unreliable, particularly with cgroups v2, where memory.max can report the string “max” inside child cgroups that are constrained by a parent. Set explicit byte values instead:

cockroach start --cache=4GiB --max-sql-memory=4GiB ...

This ensures the values resolve to what you intend regardless of cgroup detection behavior.

If you use systemd unit files with percentage values, the % character must be escaped as %%.

Cancel memory-intensive queries

If sql_mem_root_current is the culprit, identify and cancel the consuming query. Use SHOW CLUSTER SESSIONS to find active sessions and their current queries, and CANCEL QUERY to terminate them. Large sorts, hash joins on big tables, and full table scans are common causes.

The SQL memory budget is per-node, not per-query. A single large query can starve all others of memory. After cancelling, investigate the query plan to determine whether an index addition or query rewrite can reduce memory consumption.

Address CGo / Pebble cache growth

If sys_cgo_allocbytes grows while sys_go_allocbytes is flat, the storage engine is the consumer. Under normal conditions, CGo allocated should not exceed the configured --cache. Known issues with Pebble cache entry finalization can cause CGo memory to grow without being reclaimed, because the CGo memory is not subject to Go garbage collection.

If this pattern appears, check whether a newer CockroachDB version includes a fix for the leak. Reducing --cache temporarily limits the ceiling but does not fix the underlying issue.

Rate-limit backups and bulk operations

Backups, RESTORE, IMPORT, and debug zip generation can cause memory spikes that push an already-tight budget over the limit. If the OOM coincides with one of these operations, schedule them during low-traffic periods and ensure the memory budget has headroom beyond what steady-state traffic requires.

Prevention

  • Size correctly from the start. Use --cache + --max-sql-memory + --max-tsdb-memory <= 75% of available memory. The remaining 25% covers the Go runtime, OS page cache, and burst allocations. Keep RSS below 75% of the limit.
  • Set explicit byte values in containers. Do not rely on percentage-based flags. Cgroup detection is unreliable, especially with cgroups v2.
  • Monitor the three memory layers separately. Track sys_rss, sys_go_allocbytes, and sys_cgo_allocbytes independently. A single RSS alert without the breakdown tells you something is wrong but not what.
  • Alert on 53200 errors. A burst of 53200 errors is the SQL-layer warning that precedes most OOM kills. Set up log-based alerting since sql_failure_count does not break down by error code.
  • Watch GC pause duration. Average per-cycle pauses above 500ms indicate memory pressure before RSS reaches the hard limit.
  • Set Transparent Huge Pages to madvise. THP set to always can cause increased memory usage. CockroachDB recommends madvise.
  • Account for connection overhead. Each connection consumes a goroutine and session memory. Connection storms after failover can push an already-tight memory budget over the edge.

How Netdata helps

  • Per-second sys_rss, sys_go_allocbytes, and sys_cgo_allocbytes tracking lets you see which memory layer is growing before the OOM kill, not just after. Per-second resolution captures spikes that 15-30 second scrape intervals miss.
  • sql_mem_root_current correlated with sql_failure_count shows whether SQL budget exhaustion precedes the RSS climb, distinguishing SQL-driven memory growth from cache or runtime overhead.
  • GC pause metrics (sys_gc_pause_ns, sys_gc_count) alongside node liveness signals reveal whether memory pressure is causing GC pauses that threaten Raft liveness before the OOM killer fires.
  • Container-aware memory monitoring correlates CockroachDB’s own RSS reporting with the cgroup memory limit, making cgroup mis-detection visible as a divergence between what CockroachDB thinks it can allocate and what the kernel allows.

Netdata’s database monitoring brings these signals together with per-second metrics.

The Netdata solution

CockroachDB monitoring with Netdata

Netdata monitors CockroachDB with per-second metrics and automatic dashboards. Watch LSM compaction, Raft liveness, clock skew, hot ranges, and intent buildup so the distributed-systems failure modes in these runbooks surface early.