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 / cassandra / cassandra-out-of-memory-error

Operations Guides

Cassandra java.lang.OutOfMemoryError: Java heap space - causes and recovery

The error java.lang.OutOfMemoryError: Java heap space in Cassandra system logs means the JVM exhausted its allocated heap and could not satisfy an allocation request. The process typically exits, or the Linux OOM killer terminates it. Gossip marks the node DOWN, clients experience timeouts, and the remaining replicas absorb the orphaned traffic.

Unlike gradual GC pressure that degrades latency over hours, a heap-space OOM is often a hard stop. The node was serving traffic, then it was not. The challenge is not recognizing the failure (the error string is unambiguous) but finding which of several competing heap consumers caused it.

Cassandra’s JVM heap holds memtables, key cache, prepared statement cache, index summaries, and intermediate query results during read merges. When any single consumer grows faster than GC can reclaim, or when a single operation allocates more than the entire free heap, the JVM throws OutOfMemoryError. Recovery requires identifying the specific consumer and either constraining it or increasing heap headroom.

What this means

When the JVM reports java.lang.OutOfMemoryError: Java heap space, the old generation has filled to its maximum (-Xmx) and GC could not free enough objects to satisfy the pending allocation. For Cassandra, this typically means one of two scenarios: the heap is undersized for the steady-state working set (caches, memtables, index summaries together exceed what the heap can hold), or a single operation allocated more than the entire free heap (a large partition read, an oversized batch, or a flood of in-flight requests).

The HeapMemoryUsage attribute on java.lang:type=Memory shows used == max at the moment of failure. In GC logs, you see back-to-back full GC cycles that reclaim almost nothing, then the OOM. The JVM exits or becomes unresponsive until the OS or a process supervisor terminates it.

After the node dies, gossip marks it DOWN after the phi accrual failure detector threshold is exceeded (default phi_convict_threshold=8, roughly 18 seconds of heartbeat absence). Hints accumulate on coordinators. If the OOM was caused by a workload pattern rather than a one-time anomaly, the traffic redistributes to other replicas, putting them at risk of the same failure.

flowchart TD
    A["Trigger: large partition read,
oversized batch, cache pressure"] --> B["Old generation fills to max heap"] B --> C["Full GC cannot reclaim enough memory"] C --> D["java.lang.OutOfMemoryError: Java heap space"] D --> E["JVM exits or OOM-killed"] E --> F["Gossip marks node DOWN"] F --> G["Clients see timeouts,
traffic redistributes"] G --> H["Surviving replicas absorb load
plus hint replay burst"] H --> I["Cascading heap pressure
on other nodes"]

Common causes

CauseWhat it looks likeFirst thing to check
Heap too small for workloadSustained heap usage above 85% after GC even at baseline load; OOM during normal operations, not just burstsnodetool info heap ratio; compare -Xmx against total cache + memtable allocations
Large partition readOOM coincides with a specific query or table; P99 read latency spikes before the crashnodetool tablehistograms for partition size outliers; GC logs show allocation spike
Oversized batch statementsBatch size warnings in system log (WARN ... Batch for ... is of size) preceding the OOMgrep -i "batch" /var/log/cassandra/system.log
Row cache consuming heapRow cache enabled with low hit rate; heap floor trends upwardnodetool info row cache hit rate; check row_cache_size in cassandra.yaml
In-flight request floodOOM coincides with sudden throughput spike or retry storm; dropped messages spike before crashnodetool tpstats pending/blocked on MutationStage and Native-Transport-Requests
Memory leak (version-specific)Heap-after-GC floor rises monotonically over days/weeks regardless of load; restarting temporarily fixes itTrack heap-after-full-GC as a time series; jmap -histo for dominant object types

Quick checks

Run these on the affected node (or the closest surviving replica if the node is down). All are read-only unless noted.

# Check current heap usage and ratio
nodetool info | grep -i "Heap Memory"

# Check GC pause times and collection counts
nodetool gcstats

# Check for dropped messages (indicates overload before crash)
nodetool tpstats

# Check JVM heap configuration
ps aux | grep CassandraDaemon | tr ' ' '\n' | grep -E "Xm|UseG1GC|HeapDump"

# Check for OOM killer invocation in kernel log
dmesg | grep -i "killed process\|oom"

# Check total process RSS (compare against -Xmx to estimate off-heap footprint)
grep VmRSS /proc/$(pgrep -f CassandraDaemon)/status

# Parse GC logs for pause durations exceeding 1 second
grep -i "pause" /var/log/cassandra/gc.log* | awk '$NF > 1000'

# Check for batch warnings in system log
grep -i "Batch.*of size" /var/log/cassandra/system.log | tail -20

How to diagnose it

  1. Confirm the OOM type. The error must be Java heap space, not Direct buffer memory or Metaspace. A Direct buffer memory OOM points to off-heap buffer exhaustion (see Cassandra commitlog pending tasks for related write-path pressure). A Linux OOM kill without a JVM OutOfMemoryError in the logs means off-heap memory (bloom filters, compression metadata, chunk cache, direct buffers) pushed total RSS past system limits, not heap exhaustion.

  2. Check if a heap dump was captured. If -XX:+HeapDumpOnOutOfMemoryError was set in cassandra-env.sh, a .hprof file exists at the configured path. Open it with Eclipse MAT or a similar tool and sort retained size by class. The dominant consumer is usually obvious: org.apache.cassandra.db.rows objects indicate large partition reads; java.nio.HeapByteBuffer arrays indicate in-flight request buffers.

  3. Correlate timing with workload events. Check whether the OOM coincided with a repair run, a bulk load, a new deployment, or a traffic spike. If sstableloader was running, it may have exhausted heap independently (it does not inherit the main Cassandra heap settings). If a repair was active, Merkle tree construction for wide partitions can consume significant heap.

  4. Identify large partitions. Run nodetool tablehistograms <keyspace> <table> for suspect tables and check the partition size distribution. Partitions larger than ~100MB are problematic; partitions approaching the heap size will OOM the node when read. Also check nodetool toppartitions during normal operation to catch hot partitions early.

  5. Check cache configuration. If row cache is enabled (row_cache_size > 0 in cassandra.yaml), it stores full rows on-heap and is a common OOM source. Row cache is disabled by default and should remain disabled for most workloads. Check the key cache size and prepared statement cache size against the total heap budget.

  6. Analyze the heap-after-GC trend. If the node is still alive (or has been restarted), track heap usage immediately after full GC over time. A rising floor indicates either a memory leak or growing data structures. A stable floor with periodic spikes indicates transient allocation events (large reads, batches).

Metrics and signals to monitor

SignalWhy it mattersWarning sign
Heap used after full GCThe irreducible minimum of long-lived objects. Trending upward means a leak or growing structures.Floor rises above 75% of max heap
Old generation occupancy (G1 Old Gen)Direct view of memory that survives minor GC. Filling the old gen triggers full STW collections.Sustained above 85% between collections
GC pause durationLong pauses freeze gossip and all request processing. Pauses above ~18s cause gossip DOWN marking.Any pause above 2 seconds; old-gen GC more than once per minute
Dropped messages (MUTATION, READ)Overload indicator. Messages expire in queues during GC pauses or thread saturation.Any sustained non-zero rate
Process RSS vs. system RAMTotal memory footprint including off-heap. If RSS approaches system RAM, the OS OOM killer is next.RSS above 80% of system RAM
Thread pool pending (MUTATION, READ)Saturation indicator. Pending tasks accumulate when the node cannot process requests fast enough.Sustained non-zero pending
SSTable count per tableMore SSTables means more bloom filters, index summaries, and merge work per read, all of which increase heap and off-heap pressure.Trending upward over days
Client request P99 latencyTail latency reveals single-partition pathology (large partitions, tombstone scans) before an OOM occurs.P99 spikes while P50 remains stable

Fixes

Increase heap size (when the working set is genuinely too large)

Set -Xms and -Xmx to the same value in cassandra-env.sh to avoid resize cost. The recommended range for most Cassandra workloads is 8-16GB. G1GC (the default since Cassandra 5.0) handles heap well up to approximately 16GB. Beyond that, full GC pause duration becomes problematic. The practical ceiling with compressed oops is ~31GB; above that, the JVM disables compressed object references, effectively shrinking usable memory.

Tradeoff: increasing heap makes individual full GC pauses longer. A 16GB heap with G1GC can produce multi-second pauses during old-gen collection. If the OOM was caused by a transient spike rather than steady-state pressure, a larger heap buys time but does not fix the root cause.

Disable or shrink row cache

Row cache stores full partition data in memory and is invalidated on any write to the partition. It is disabled by default (row_cache_size: 0). If it was enabled, set it back to zero and restart. The default cache provider is org.apache.cassandra.cache.OHCProvider, which allocates off-heap; monitor total RSS to ensure off-heap allocation does not trigger the OS OOM killer.

Reduce batch sizes

Cassandra logs a warning when a batch exceeds the configured threshold. Logged batches that grow large enough to OOM the coordinator are a known pattern. Application changes are required: split large batches into individual statements or smaller chunks, use UNLOGGED batches only for partition-local writes, and never use batches for bulk loading (use sstableloader or bulk writes via individual mutations instead). See Cassandra Batch Too Large Warning: How To Fix It.

Fix large partition data model

If a partition is large enough to OOM the node when read, the data model needs restructuring. Cassandra merges entire partition contents in heap before returning results. A partition that has grown to hundreds of megabytes will consume that much heap on every read. Options include: bucketing the partition key (for example, adding a time component), switching to TWCS for TTL-dominated time-series data, or using paging to limit the result set per query.

Throttle in-flight requests

If the OOM was caused by a request flood (retry storm, connection pool misconfiguration, runaway analytics query), the fix is at the application or coordinator level. Reduce client-side retry aggressiveness, add rate limiting, and verify that speculative retry is not configured to ALWAYS. On the server side, ensure concurrent_reads and concurrent_writes are sized appropriately for the hardware, but do not increase them to mask an application-level problem.

Capture a heap dump for post-incident analysis

Set the following JVM flags in cassandra-env.sh to automatically capture a heap dump on the next OOM:

# JVM flags for automatic heap dump on OOM
JVM_OPTS="$JVM_OPTS -XX:+HeapDumpOnOutOfMemoryError"
JVM_OPTS="$JVM_OPTS -XX:HeapDumpPath=/var/lib/cassandra/heapdumps/"

Without these flags, once the JVM exits, the heap state is gone. You cannot retroactively capture a dump from a dead process.

Prevention

  • Track heap-after-full-GC as a time series. This is the single most useful leading indicator. If the post-GC floor trends upward over days, investigate before it reaches 85%. Most monitoring setups track total heap usage, which oscillates constantly and tells you almost nothing.
  • Keep row cache disabled. It is disabled by default. Do not enable it without a clear, measured reason and off-heap allocation.
  • Monitor partition size growth. Use nodetool tablehistograms or nodetool toppartitions periodically. A growing max partition size is a ticking time bomb for heap.
  • Page all range scans. Ensure client drivers use paging for any query that could return large result sets. Unpaged reads of large partitions are a direct path to OOM.
  • Audit batch usage. Grep system logs for batch warnings. Every logged batch warning is a candidate for OOM if the batch grows further.
  • Budget total memory. Ensure JVM heap plus off-heap allocations (bloom filters, compression metadata, index summaries, chunk cache, direct buffers) plus OS page cache fit within system RAM with at least 20% headroom. A heap that looks fine can still get the process OOM-killed if off-heap consumption is uncontrolled.
  • Set HeapDumpOnOutOfMemoryError. Without it, you lose the evidence needed to diagnose intermittent OOMs that happen hours or days apart.

How Netdata helps

  • Per-second JVM heap metrics from java.lang:type=Memory expose used, committed, and max heap with enough granularity to see the allocation spike that precedes an OOM, not just the steady-state average.
  • GC pause duration per collector (G1 Young Generation, G1 Old Generation) lets you correlate long pauses with gossip DOWN events and dropped messages in the same time window.
  • Dropped message rates by type (MUTATION, READ) surface the overload that often precedes heap exhaustion, giving you minutes of warning before the OOM.
  • Thread pool pending and blocked tasks across MUTATION, READ, and Native-Transport-Requests stages show where requests are queuing, which helps distinguish a disk I/O bottleneck from a heap pressure bottleneck.
  • Process RSS alongside heap metrics reveals the gap between JVM heap and total memory consumption, which is the gap that triggers OS OOM kills despite healthy heap readings.

Netdata’s Cassandra monitoring with Netdata brings these signals together with per-second metrics and ML anomaly detection.

The Netdata solution

Cassandra monitoring with Netdata

Netdata monitors Apache Cassandra with per-second metrics and automatic dashboards. Correlate GC pauses, compaction backlog, tombstone rates, pending hints, and disk usage across nodes to catch a creeping cluster before it tips over.