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 / tomcat / tomcat-outofmemoryerror-java-heap-space ▌

Operations Guides

Tomcat java.lang.OutOfMemoryError: Java heap space: the heap is genuinely full

The string java.lang.OutOfMemoryError: Java heap space in catalina.out means the JVM could not satisfy an allocation because live (reachable) objects plus the requested size exceeded the maximum heap (-Xmx). This is not a transient GC spike or a young-gen promotion failure. The heap is genuinely full of data the collector cannot reclaim.

Tomcat’s heap holds HTTP sessions, request/response buffers, application objects, and in-process caches. When live data outgrows -Xmx, GC frequency rises, each cycle reclaims less, and application threads get less time between collections. Eventually an allocation fails and the JVM throws OutOfMemoryError: Java heap space. The process may limp on in a degraded state, serving some requests and failing others, until restarted.

Capture a heap dump before restarting. Once you restart, the evidence is gone. The dump tells you whether the cause is a session leak, a cache without eviction, an oversized response object graph, or an undersized heap. This article covers confirming the heap is genuinely full (rather than a different memory region or an OS-level kill), capturing a usable dump under pressure, and sizing -Xmx after the fix.

What this means

Three memory regions produce different OOM error strings and need different fixes. Distinguish them before acting.

Error stringRegionRoot cause category
OutOfMemoryError: Java heap spaceJava heap (bounded by -Xmx)Live data grew past max heap
OutOfMemoryError: MetaspaceMetaspace (native, class metadata)Classloader leak on hot redeploy
OutOfMemoryError: unable to create new native threadNative thread stacksThread leak or ulimit exhaustion

This article is about the first. The diagnostic decision flow:

flowchart td
    A[OutOfMemoryError in catalina.out] --> B{Which message?}
    B -->|Java heap space| C[Heap region]
    B -->|Metaspace| D[Classloader leak path]
    B -->|unable to create new native thread| E[Thread leak path]
    C --> F{Is -Xmx reasonable for workload?}
    F -->|No| G[Undersized heap]
    F -->|Yes| H[Live data leak or oversized graph]
    H --> I[Capture heap dump before restart]
    I --> J[Analyze dominant retainers]

A genuine heap OOM leaves fingerprints: post-GC old-gen usage near -Xmx, increasing Full GC frequency, and the JVM surviving after the error in a degraded state. If the process simply vanished with no JVM error, check the kernel log for an OOM kill. That is a different problem where the container cgroup limit or system RSS budget was hit before the heap itself filled.

Common causes

CauseWhat it looks likeFirst thing to check
Session accumulationactiveSessions climbs monotonically; sessions cluster in old genJMX Catalina:type=Manager activeSessions, expiredSessions
Unbounded in-process cachePost-GC old-gen rises smoothly; one map dominates the dumpHeap histogram for top types
Oversized response object graphThroughput drops before OOM; large allocations during serializationBytes-sent rate vs request rate
Undersized -XmxPost-GC baseline routinely above 75% at peak; OOM only at peakManager Status XML max vs ergonomics default
Container cgroup limit lower than -XmxProcess dies silently, no JVM error in catalina.outdmesg, container memory limit

Quick checks

These are read-only and safe to run on a live instance. Note: jmap -histo:live is the one exception; it forces a Full GC.

# Confirm the exact error string and surrounding context
grep -B2 -A20 "OutOfMemoryError" $CATALINA_BASE/logs/catalina.out | tail -60

# Confirm whether the process died or is limping
pgrep -f 'catalina.startup.Bootstrap' || echo "DOWN"

# If the process is gone, check whether the kernel killed it (RSS, not heap)
dmesg -T | grep -i -A5 -B5 "out of memory\|oom-kill\|killed process"

# Heap snapshot via Manager Status XML (free/total/max)
curl -s -u $USER:$PASS 'http://localhost:8080/manager/status?XML=true' | \
  grep -oE '(free|total|max)="[0-9]+"'

# Old-gen pressure and Full GC count via jstat (refresh every 1s)
jstat -gcutil $(pgrep -f 'catalina.startup.Bootstrap') 1000

# Heap info via jcmd (current region occupancy)
jcmd $(pgrep -f 'catalina.startup.Bootstrap') GC.heap_info

# Histogram of top heap types (WARNING: :live forces a Full GC)
jmap -histo:live $(pgrep -f 'catalina.startup.Bootstrap') | head -30

If the JVM is already in a death spiral, prefer jmap -histo (without :live) for a quick read, then move directly to a full dump.

How to diagnose it

  1. Confirm the error is the heap variant. The full string is java.lang.OutOfMemoryError: Java heap space. GC overhead limit exceeded indicates GC thrashing rather than a hard allocation failure; most operators treat it as the same failure class. Metaspace and unable to create new native thread are different regions.

  2. Check whether the process is alive or dead. If it is gone with no JVM error in catalina.out, the OS OOM killer took it for RSS reasons. Non-heap memory (thread stacks, Metaspace, native buffers) pushed total process memory past the cgroup or host limit. That is a separate problem from heap OOM.

  3. Look at the trajectory, not the instantaneous value. A single heap reading is noise. The signal that matters is the post-GC baseline of old gen: the valley of the sawtooth. If the valley is rising over hours or days, live data is accumulating. Instantaneous usage hitting 80% before a young GC is normal.

  4. Correlate GC behavior. With G1GC (the JDK 9+ default), any Full GC is a warning sign. If FGC in jstat -gcutil is climbing and FGCT (Full GC time) is a meaningful fraction of wall clock, the heap is under sustained pressure.

  5. Capture the heap dump before restarting. This is the irreversible step. If you restart first, the evidence is gone.

# Full heap dump. WARNING: the live form forces a stop-the-world Full GC.
# On a 4GB heap this can pause the JVM for seconds to tens of seconds.
PID=$(pgrep -f 'catalina.startup.Bootstrap')
jmap -dump:live,format=b,file=/var/tmp/tomcat-heap-$(date +%s).hprof $PID

If the JVM is too far gone to respond to jmap, an automatic dump from -XX:+HeapDumpOnOutOfMemoryError (set via CATALINA_OPTS in $CATALINA_BASE/bin/setenv.sh on stock distributions) is the fallback.

  1. Restart the JVM to restore service. Restarting is recovery, not a fix. Without the dump and analysis, the OOM will recur on the same trajectory.

  2. Analyze the dump offline. Open the .hprof in Eclipse MAT or VisualVM. Run the dominator tree or leak suspect report. The report points at the single retainer keeping the largest chunk of heap alive, typically a session map, a static cache, a queue, or one large response buffer.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
Post-GC old-gen utilizationLive data baseline; ignores ephemeral garbageValley rising over hours, or above 75% of -Xmx sustained
Full GC count and timeG1 should rarely Full GC; each one is an eventFGC climbing in jstat; FGCT above 5% of wall clock
Active session countSessions are usually the largest heap consumerMonotonic growth without plateau
GC overhead ratioDistinguishes GC-bound from app-bound CPUGC time above 10% of wall clock
Process RSS vs heapCatches OOM-kill-before-JVM-OOMRSS approaching cgroup limit while heap looks fine
Bytes sent per requestFlags response object graph explosionSudden 10x rise in bytesSent delta vs requestCount delta

Thresholds for this failure pattern: post-GC heap above 75-85% of max sustained is the ticket zone, above 90% is page-worthy. The steady-state target is post-GC heap below 60% of -Xmx at peak.

Fixes

If the dump shows a session leak

The most common heap-OOM cause in Tomcat. Sessions live until the Manager expires them (default 30 minutes), and any client that does not send a session cookie creates a new session if the application calls getSession(true). Bots and load-test clients that ignore cookies are the usual culprit.

  • Set maxActiveSessions on the Manager element to bound the count.
  • Disable automatic session creation in JSPs with <%@ page session="false" %> where sessions are not needed.
  • Verify session expiry is actually firing: expiredSessions on the Manager MBean should be climbing over time.
  • For REST endpoints that do not need sessions, ensure the framework is not creating them implicitly.

If the dump shows an unbounded cache or collection

A static map, a hand-rolled cache, or a queue that grows without eviction will fill old gen monotonically. The dominator tree in MAT points at the exact field.

  • Add eviction: size bound or TTL.
  • If the collection is a queue, ensure consumers are keeping up. Unbounded queues under backpressure are a classic leak.
  • For thread-local accumulation, ensure remove() is called in a finally block.

If the dump shows an oversized response object graph

A serialization path that materializes an entire table, a deep entity graph with lazy loading triggered en masse, or a CSV export built in memory. The dump shows one or a few very large byte[], char[], or String instances.

  • Stream the response instead of buffering it. Use chunked transfer encoding.
  • Paginate large reads. Do not let a single request hold the full result set in memory.
  • Watch the bytes-sent signal: it spikes before the OOM if the cause is response size.

If the dump is clean and -Xmx is simply too small

If the dominator tree shows only expected application objects and the post-GC baseline has been creeping up only because traffic grew, the heap is undersized. Increase -Xmx and set -Xms equal to -Xmx for production to avoid heap resize pauses.

In containers, check MaxRAMPercentage. Since JDK 8u191 the default is 25% of the container memory limit, which is often too low for a Tomcat that owns its container. Also confirm the container memory limit is at least -Xmx plus non-heap overhead (Metaspace, thread stacks, native buffers). Otherwise the OS OOM killer fires before the JVM ever sees heap pressure.

Security note: DoS-via-OOM

Several Tomcat CVEs are denial-of-service issues triggered by crafted input and fixed only by upgrading: CVE-2023-24998 (unlimited multipart request parts), CVE-2024-23672 (WebSocket connections kept open), and CVE-2026-68763 (allocation leak when an HTTP/2 stream is reset). If the OOM coincides with abnormal HTTP/2 traffic, multipart upload storms, or WebSocket floods, check the Tomcat security page for your version. The fixes are version upgrades, not heap tuning.

Prevention

  • Enable automatic heap dumps on OOM. Set -XX:+HeapDumpOnOutOfMemoryError and -XX:HeapDumpPath=/var/tmp/ so the next OOM produces a dump without operator intervention.
  • Alert on post-GC old-gen baseline, not instantaneous heap. Alerting on raw sawtooth peaks creates constant false positives.
  • Alert on any Full GC with G1GC. One is a warning; recurring is a leak.
  • Alert on monotonic session count growth. Session accumulation is the single most common Tomcat heap leak.
  • In containers, set MaxRAMPercentage explicitly. Ensure the container limit covers -Xmx plus non-heap overhead.
  • Run a soak test with a heap dump at the end in staging. Catch leaks before they hit production.

How Netdata helps

Netdata’s per-second JVM metrics turn the post-GC baseline into a visible trend rather than a guess from a jstat snapshot.

  • Heap utilization per region, sampled per second, makes the sawtooth and its rising valley visible without manual jstat polling during an incident.
  • GC collection count and time per generation show Full GC frequency alongside heap pressure, confirming the death-spiral pattern before the OOM lands.
  • Old-gen pool utilization post-GC is the leading indicator this article keeps returning to. Trending it over days surfaces leaks while they are still cheap to fix.
  • Active session count per context correlates session accumulation with heap growth, which is usually the smoking gun in Tomcat heap OOMs.
  • Process RSS alongside heap catches the inverse case where RSS is the killer and the heap looks fine.
  • Anomaly detection on the post-GC baseline flags the gradual rise that a static threshold misses, before it becomes a page.