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-noclassdeffounderror-after-redeploy ▌

Operations Guides

Tomcat NoClassDefFoundError after redeploy: stale classloaders serving half-loaded classes

A hot redeploy on Tomcat succeeds, the new context reports STARTED, and within minutes requests start failing with java.lang.NoClassDefFoundError for classes that are visibly present in the new WAR. Sometimes it is ClassNotFoundException. Sometimes the error names a class that was renamed or removed between versions. Restarting the JVM clears it. The next redeploy brings it back.

The root mechanism is the WebappClassLoader lifecycle. Tomcat creates a new classloader for each web application context and replaces it on every redeploy. The old classloader should be garbage collected along with every class it loaded. When something holds a strong reference to it (a thread, a ThreadLocal, a JDBC driver registration, a logging appender, a static field, a shutdown hook), it stays alive. Threads still bound to it try to resolve classes against it. Those classes either no longer exist in the new context or conflict with what the old classloader already loaded, and the JVM throws NoClassDefFoundError or ClassNotFoundException.

This is the classloader leak failure pattern. NoClassDefFoundError is one companion symptom. OutOfMemoryError: Metaspace is the other. Both share the same root cause and the same long-term fix.

What this means

A NoClassDefFoundError after a hot redeploy means the JVM has two live classloaders for the same context at the same time, and some thread or cache is using the wrong one. The class that is failing to load is not necessarily missing. It is being looked up in a classloader that was supposed to be retired.

Two clues distinguish this from a genuine missing-class error:

  • A clean JVM restart makes the error disappear. If the class were truly absent from the WAR, the restart would not help.
  • The error appears only after at least one previous deployment of the same context. A fresh Tomcat with a single first-time deploy does not show this pattern.

Metaspace growth is the companion signal. Each leaked classloader retains every class it ever loaded. Metaspace grows in a staircase, one step per redeploy, and never drops. Eventually it hits MaxMetaspaceSize and the JVM dies with OutOfMemoryError: Metaspace. If MaxMetaspaceSize is unset, the OS OOM killer ends the process with no JVM-level error.

There is a second, distinct cause worth separating early: a library or version conflict packaged in the WAR itself. Here the class exists, but two incompatible versions are on the classpath (typically one in WEB-INF/lib and one in Tomcat’s lib), and the classloader resolves the wrong one. The method signatures do not match and the JVM throws NoClassDefFoundError, NoSuchMethodError, or LinkageError. This form is not a leak. It reproduces on a clean restart, which is the fastest way to tell the two apart.

flowchart TD
    A["Hot redeploy"] --> B["New WebappClassLoader created"]
    B --> C["Old classloader should be GC'd"]
    C --> D{"Reference held?"}
    D -- "Yes: thread, ThreadLocal, JDBC, hook" --> E["Old classloader stays live"]
    E --> F["Threads serve classes from old loader"]
    F --> G["NoClassDefFoundError on missing/renamed class"]
    E --> H["Metaspace grows one step"]
    H --> I["OutOfMemoryError: Metaspace after N redeploys"]
    D -- "No" --> J["Clean GC, no error"]

Common causes

CauseWhat it looks likeFirst thing to check
Classloader leak (stale reference)NoClassDefFoundError appears only after redeploy; Metaspace grows by a roughly constant amount each redeploy; catalina.out has Tomcat leak-detection warningscatalina.out for “failed to stop” or ThreadLocal warnings
Library or version conflict in WARError reproduces on clean restart; same class on classpath twice (WEB-INF/lib plus Tomcat lib); often NoSuchMethodError or LinkageError alongsideInspect both classpaths for duplicate jars
Partial or failed deployApplication context reports FAILED or STOPPED in Manager; error appears immediately on first request, not after some uptimeManager list endpoint; localhost.<date>.log
javax to jakarta namespace mismatch on Tomcat 10.xError references javax.servlet.* (or other Java EE 8 namespace classes); the WAR was compiled for an earlier TomcatRecompile the WAR against jakarta.*
Native library loaded by previous classloaderError references a class backed by JNI; redeploy fails to reload the native libApplication logs for “Native library already loaded”

Quick checks

These are read-only and safe to run on a live production Tomcat.

# Identify the failing class from recent errors
grep -nE "NoClassDefFoundError|ClassNotFoundException" $CATALINA_BASE/logs/catalina.out | tail -50
# Look for Tomcat's own leak-detection warnings during the last undeploy
grep -iE "threadLocal|failed to stop|memory leak|forcibly" $CATALINA_BASE/logs/catalina.out | tail -50
# Check application context state via Manager (running, stopped, failed)
curl -s -u $MANAGER_USER:$MANAGER_PASS http://localhost:8080/manager/text/list
# Use Manager's leak finder. Calls System.gc and reports stopped webapps with live classloaders.
curl -s -u $MANAGER_USER:$MANAGER_PASS http://localhost:8080/manager/text/findleaks
# Current Metaspace usage and limit (JDK 11+)
jcmd $(pgrep -f 'catalina.startup.Bootstrap') VM.metaspace
# Per-second GC + Metaspace view (MC = capacity, MU = used, in KB)
jstat -gc $(pgrep -f 'catalina.startup.Bootstrap') 1000
# Look for application threads that survived the undeploy
jstack $(pgrep -f 'catalina.startup.Bootstrap') > /tmp/threads.txt
grep -ciE "scheduler|timer|shutdown|ThreadLocal" /tmp/threads.txt
# Verify the failing class is actually in the new WAR
unzip -l /path/to/app.war | grep -i "NameOfFailingClass"
# Find duplicate jars across Tomcat lib and the WAR (version-conflict check)
ls $CATALINA_BASE/lib | sort > /tmp/tomcat-lib.txt
unzip -l /path/to/app.war | awk '/WEB-INF\/lib\// {n=split($4,a,"/"); print a[n]}' | sort > /tmp/war-lib.txt
comm -12 /tmp/tomcat-lib.txt /tmp/war-lib.txt
# Note: this only catches exact filename matches. Tomcat ships short names
# (servlet-api.jar) that differ from Maven artifact names (javax.servlet-api-4.0.1.jar).
# Manually inspect for servlet-api, jsp-api, el-api, and annotations-api in WEB-INF/lib.

How to diagnose it

  1. Confirm the error is post-redeploy only. Restart the JVM cleanly and replay the same request. If the error disappears, you are in classloader-leak territory. If it reproduces, you are in version-conflict, failed-deploy, or namespace-mismatch territory.

  2. Identify the failing class. The first line of the stack trace names the class the JVM tried to load. Note whether it is an application class, a framework class, or a javax.* / jakarta.* namespace class. A javax.servlet.* error on Tomcat 10.x usually means the WAR was compiled against Java EE 8 (Jakarta EE 8) and not Jakarta EE 9+.

  3. Pull Metaspace history. Compare Metaspace usage before the redeploy, immediately after, and ten minutes later. A leak shows a step up that does not come back down. The java.lang:type=MemoryPool,name="Metaspace" MBean is the cleanest source.

  4. Run Manager findleaks. Any non-empty output strongly suggests a leak. It calls System.gc and then lists stopped webapps whose classloaders are still reachable.

  5. Mine catalina.out for Tomcat’s leak warnings. On undeploy Tomcat logs specific, actionable messages: ThreadLocal keys not removed, threads started but not stopped, JDBC drivers registered but not deregistered. These messages name the leak source.

  6. Take a thread dump. Look for application-spawned threads (Timer, ScheduledExecutorService, framework schedulers) that survived the undeploy. Their context classloader still points at the old WebappClassLoader.

  7. If the logs do not name the leak, take a heap dump before restarting. Use jmap -dump:format=b,file=/tmp/heap.hprof <pid> and open the result in Eclipse MAT. Run the “Leak Suspects” report and search for WebappClassLoader instances and their GC roots. Warning: both jmap -dump and jcmd GC.heap_dump stop the JVM for the full dump duration. On a large heap this can be seconds of downtime. For the safe capture procedure before a forced restart, see the related heap-dump guide below.

  8. If the error reproduces on clean restart, switch to version-conflict diagnosis. List jars in both Tomcat’s lib and the WAR’s WEB-INF/lib. A class present in both locations is ambiguous. The classloader delegation order decides which one wins, and it may not be the one the application expects.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
Metaspace used (java.lang:type=MemoryPool,name="Metaspace")Each leaked classloader retains all its classes; Metaspace is where they liveStep increase per redeploy that does not decay
LoadedClassCount (java.lang:type=ClassLoading)Tracks classes currently held in memoryMonotonic growth across undeploy and redeploy cycles
UnloadedClassCount (java.lang:type=ClassLoading)A healthy undeploy unloads the old classesStays flat across redeploys when a leak is present
Deploy events in catalina.out (HostConfig.deployWAR)Anchors metric changes to a specific redeployMetaspace step that lines up with a deploy log line
Tomcat leak-detection log linesNames the specific leak vector (ThreadLocal, thread, driver)Any line matching “failed to stop” or “ThreadLocal”
Application log: NoClassDefFoundError rateThe user-visible symptomFirst occurrence immediately after redeploy
Context state (Catalina:type=Context,*,stateName)Distinguishes a leak from a failed deployFAILED or STOPPED instead of STARTED

Fixes

Fix: clean JVM restart (immediate)

A clean restart clears all leaked classloaders and is the only reliable immediate remediation. Hot-redeploying again is not the fix. It adds another leaked classloader on top of the existing ones.

Tradeoff: restart loses in-flight sessions unless you run a PersistentManager or an external session store. Schedule it; do not bounce under load without a reason.

Fix: stop hot-redeploying in production

Most production Tomcat instances should not hot-redeploy. The reliable deployment model is a full JVM restart per deploy. This eliminates the leak mechanism entirely.

If you must hot-redeploy, cap the number of redeploys before a scheduled restart based on Metaspace growth per redeploy. Compute it as (MaxMetaspaceSize - current Metaspace) / growth-per-redeploy.

Fix: find and remove the leak source

This is the long-term fix. Common vectors, in rough order of frequency:

  • ThreadLocals not cleared in contextDestroyed. Add a ServletContextListener that removes entries from your own ThreadLocals. Tomcat logs the offending key on undeploy.
  • Threads started by the application and never stopped (java.util.Timer, ScheduledExecutorService, framework schedulers). Cancel them in contextDestroyed. Tomcat’s clearReferencesStopThreads Context attribute can forcibly stop them, but this is unsafe and should not be relied on in production. The attribute defaults to false on both Tomcat 9.0.x and 10.1.x.
  • JDBC drivers in WEB-INF/lib auto-register with DriverManager, which is JVM-global. Tomcat attempts deregistration on undeploy, but a driver also loaded by the common classloader may not clean up fully. Move shared JDBC drivers to Tomcat’s lib, or deregister them manually in contextDestroyed.
  • Logging frameworks (log4j, logback) hold classloader references via appenders and repository selectors. Shut them down explicitly in contextDestroyed.
  • Shutdown hooks registered by the application or framework. These are JVM-global and pin the classloader. A ServletContextListener that removes the hook, by reflection if necessary, is the workaround. Frameworks have shipped regressions in this area; verify behaviour on every framework upgrade.

Fix: library or version conflict

If the error reproduces on clean restart, the class is on the classpath twice with incompatible versions. Remove the duplicate. The safer rule: framework jars that Tomcat itself provides (servlet API, JSP API, EL) should not also be in WEB-INF/lib. Use scope=provided in Maven or compileOnly in Gradle.

Fix: set MaxMetaspaceSize

Always set -XX:MaxMetaspaceSize. Without it, a classloader leak grows Metaspace until the OS OOM killer ends the process, with no JVM-level error. The limit turns a silent kill into a recoverable OutOfMemoryError: Metaspace and bounds the blast radius.

Prevention

  • Production deploys are clean restarts, not hot redeploys. This is the single highest-leverage change.
  • Set -XX:MaxMetaspaceSize. Always. The default is unbounded.
  • Keep the JreMemoryLeakPreventionListener enabled (it is the default). It pre-loads known JRE singletons at startup so they do not capture a webapp classloader later.
  • Audit ServletContextListener cleanup on every framework upgrade. Logging, scheduling, and data-source libraries have all shipped regressions that leaked classloaders.
  • Run Manager findleaks after every staging redeploy as a CI check. Any non-empty output fails the build.
  • Verify WAR integrity before deploy. A truncated or partially-written WAR produces a half-loaded context that mimics a classloader leak.
  • Watch for the javax to jakarta migration on Tomcat 10.x. A WAR compiled against javax.servlet.* throws NoClassDefFoundError on the namespace classes. The fix is recompiling against jakarta.servlet.*, not a classloader cleanup.

How Netdata helps

  • The Java JMX integration collects java.lang:type=MemoryPool,name="Metaspace" and java.lang:type=ClassLoading (LoadedClassCount, UnloadedClassCount) at per-second resolution, making the post-redeploy step pattern visible.
  • Per-second GC metrics from java.lang:type=GarbageCollector show whether the classloader leak has progressed to triggering Full GCs or pause-time inflation.
  • ML anomaly detection on Metaspace can flag the staircase pattern before the absolute value approaches MaxMetaspaceSize.
  • The Tomcat integration surfaces per-connector thread counts and error rates, so a 5xx spike lines up against the deploy timestamp.
  • Correlating the deploy event with Metaspace, LoadedClassCount, and error rate on one timeline confirms whether the failure is a classloader leak or a WAR packaging issue.