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-how-it-works-in-production ▌

Operations Guides

How Tomcat actually works in production: a mental model for operators

Tomcat looks like a single process serving HTTP, but inside it is a nested container hierarchy with a three-tier buffering model in front of your servlet code. Most production incidents are not bugs in Tomcat; they are mismatches between what the operator thought was happening and what the connector and thread pool were doing. The thread pool exhausts while CPU sits at 5%. The JVM is alive but every request hangs. Sessions fill the heap while request rate looks normal. Clients see connection timeouts while Tomcat logs nothing.

This is the mental model that makes those symptoms legible: the Server -> Service -> Connector -> Engine -> Host -> Context -> Servlet nesting, the NIO connector’s separation of connection multiplexing from request processing, the executor as the real capacity model, the per-webapp classloader, and how StandardManager pins sessions on the heap.

What it is and why it matters

Tomcat is a Java servlet container. It accepts TCP connections, maps them to application code (servlets, filters, JSPs), and returns HTTP responses. The nested hierarchy is:

Server -> Service -> Connector -> Engine -> Host -> Context -> Servlet

  • A Server is the entire Tomcat process. One JVM, one Server.
  • A Service groups one or more Connectors with one Engine. Most deployments have one Service.
  • A Connector binds a port and implements an I/O model. Default ports are 8080 (HTTP), 8443 (HTTPS), and 8009 (AJP).
  • An Engine receives requests from Connectors and routes them to Hosts.
  • A Host is a virtual host. It maps hostnames to web applications.
  • A Context is a single web application. Each Context gets its own classloader and session manager.
  • A Servlet is the application code that produces a response.

Operators rarely manipulate the top of this hierarchy. The two layers that decide whether your service stays up are the Connector (I/O model, connection limits) and the Context (classloader, sessions, application state). Everything above Engine is configuration you set once and forget.

Every Tomcat incident is a story about one layer hitting a limit. Thread exhaustion is the Executor. Connection drops are the Connector’s poller plus the OS accept queue. Metaspace OOM is the Context’s classloader. Heap OOM is usually the Context’s session manager or the application’s own state. If you do not know which layer owns which resource, you debug blindly.

How it works

The NIO connector: three populations, not one

The default connector is NIO (non-blocking I/O built on java.nio.Selector). NIO separates three populations that older BIO Tomcat conflated: accepted connections, sockets with data ready, and requests being processed.

flowchart LR
  SYN["TCP SYN from client"] --> AQ["OS accept queue
acceptCount default 100"] AQ --> AC["Acceptor thread
accept(), hand to poller"] AC --> PL["Poller threads
maxConnections default 8192"] PL --> WP["Worker pool
maxThreads default 200"] WP --> SRV["Servlet
thread held for full request"]
  • Acceptor: a single thread per connector calling accept() on the server socket. It hands the socket to the poller. If the acceptor is blocked by a GC pause or because maxConnections is reached, no new connections are received.
  • Poller: a small number of threads using selector multiplexing to watch registered sockets for read or write readiness. Capacity is bounded by maxConnections (default 8192 for NIO). An idle keepalive connection occupies a poller slot and a file descriptor, but not a thread.
  • Worker pool: the Executor. This is where request processing happens. Default minSpareThreads=10, maxThreads=200. Each active request occupies one thread for the entire request lifecycle, unless the application uses async servlets.

This separation is why Tomcat can hold thousands of idle keepalive connections without dying. Under BIO, every keepalive connection held a thread. Under NIO, an idle connection is cheap. The expensive resource is the worker thread.

The executor is the capacity model

The thread pool is Tomcat’s heart. Every active request consumes one thread. When the pool is full, new requests queue. When the poller is full, the acceptor stops calling accept(). When the OS accept queue behind the connector is also full, the kernel drops new connections.

The defaults, maxThreads=200, minSpareThreads=10, acceptCount=100, and maxConnections=8192 (NIO), imply a specific failure order:

  1. Worker threads fill (maxThreads reached). Requests wait for a free thread.
  2. Connections still arrive. The poller holds them up to maxConnections.
  3. Once maxConnections is reached, the acceptor stops calling accept(). New SYNs pile up in the OS accept queue, bounded by acceptCount.
  4. When acceptCount fills, the kernel drops or resets new connections. On Linux with default settings (tcp_abort_on_overflow=0), the ACK is silently dropped and clients see timeouts. With tcp_abort_on_overflow=1, the kernel sends RST and clients see connection refused.

Operators who do not know this order interpret the symptoms backwards. They see “Tomcat is up, port is open, but clients time out” and assume Tomcat crashed. It did not. The accept queue is full. Tomcat has no JMX counter for accept queue depth. The only signal is OS-level ss -tnl Recv-Q.

A second consequence: maxThreads is not a performance knob. It is a statement about how many concurrent requests your backends can sustain. Setting maxThreads=2000 when the JDBC pool is sized at 20 just moves the queue from Tomcat to the database.

Sessions: StandardManager pins them on the heap

The default session manager is StandardManager. Sessions live in a ConcurrentHashMap on the JVM heap. Default session timeout is 30 minutes. There is no eviction based on memory pressure. Sessions stay until they expire or are invalidated.

This makes sessions a direct heap consumer with no backpressure. A burst of bot traffic that creates a session per request, combined with a long timeout, fills old gen. The application code looks fine. The heap graph shows old gen climbing after GC. The thread pool is healthy. The cause is the session manager accumulating stateful objects nobody asked it to hold.

PersistentManager (serialize to disk or database) and the cluster managers (DeltaManager, BackupManager) exist but are not the default. Most production deployments either accept StandardManager’s heap behavior or move sessions to an external store like Redis.

Per-webapp classloader: isolation with a leak trap

Each Context gets its own WebappClassLoader. This is what lets you deploy application A and application B in the same Tomcat without their libraries colliding. It is also the source of the most notorious Tomcat operational issue.

When a webapp is undeployed, its classloader and all the classes it loaded should be garbage collected. They are not collected if anything still references them: a ThreadLocal, a JDBC driver registered with the global DriverManager, a thread the application started and never stopped, a static field in a shared library, a log appender. The classloader and every class it loaded are pinned in Metaspace.

Each hot redeploy that leaks adds another copy of the application’s classes to Metaspace. After enough redeploys, Metaspace is exhausted. If MaxMetaspaceSize is not set, native memory grows until the kernel OOM killer kills the process (in a container, against the cgroup limit) with no JVM-level OutOfMemoryError: Metaspace preceding it.

In containerized deployments that never hot redeploy, this is a non-issue. In environments that do hot redeploy, it is the single most reliable way to slowly kill a Tomcat.

Valves and the request pipeline

Valves are pipeline components at the container level, analogous to filters but outside the application. AccessLogValve, RemoteAddrValve, and StuckThreadDetectionValve are the operationally relevant ones. Valves execute synchronously in the request thread, which means a slow valve is a slow request and a stuck valve is a stuck thread. StuckThreadDetectionValve is not configured by default. Many teams discover this during an incident when they need stuck thread counts and the MBean does not exist.

Where it shows up in production

The mental model maps directly onto the failure archetypes you see in incidents.

Symptom in productionLayer involvedWhat is actually happening
Service up, JVM at 5% CPU, requests hangExecutor (worker pool)All maxThreads occupied, queued behind slow backend
Clients see connection timeouts or resets, Tomcat logs nothingConnector + OS accept queuemaxConnections and acceptCount both full; kernel drops or RSTs new connections
Heap sawtooth valleys rising over daysContext (session manager) or applicationLive data growing; sessions or caches retained
OutOfMemoryError: Metaspace after redeployContext (WebappClassLoader)Classloader leak; old webapp classes pinned
RSS grows, heap looks fine, process diesMetaspace without MaxMetaspaceSize, or native memoryOff-heap growth invisible to heap metrics
Random latency spikes across all endpointsJVM (GC)Full GC pauses; with G1, any Full GC is abnormal
404 on every route after deployContext stateApplication failed to start; Tomcat still serves other apps

The pattern: most Tomcat outages are not Tomcat bugs. They are bounded resources hitting limits while adjacent resources look healthy. CPU low and threads at max means I/O wait, not overload. Heap fine and RSS climbing means off-heap growth, not a leak in your application code. Process alive and port open tells you nothing about whether requests are being served.

Tradeoffs and when this matters

This mental model matters most when:

  • You are sizing a deployment. maxThreads is not a knob you tune for throughput in isolation; it is a statement about how many concurrent requests your backends can sustain before they degrade. A 200-thread pool in front of a 20-connection database pool just relocates the queue.
  • You are interpreting a “Tomcat is slow” page. Without knowing whether the slowness is in the worker pool, the poller, the accept queue, or the servlet, you cannot pick a fix. Thread dumps and accept queue depth tell you which layer is saturated.
  • You are choosing a redeploy strategy. Hot redeploy trades convenience for classloader leak risk. Immutable containers trade startup time for leak-free Metaspace.
  • You are behind a reverse proxy. Connection metrics reflect the proxy’s keepalive behavior, not end-user patterns. A single nginx can hold dozens of keepalive connections to Tomcat, which is normal and not a connection leak. Coordinate proxy keepalive timeout with Tomcat’s connectionTimeout (code default 60000ms; the stock server.xml ships 20000ms) to avoid reset storms.

It matters least when:

  • You are running embedded Tomcat (Spring Boot) with no Manager app, no server.xml, and no hot redeploy. The failure modes are the same, but several configuration surfaces disappear.
  • You are running a stateless service with no sessions and no database pool. The session and JDBC layers drop out of the failure surface.

Signals to watch in production

SignalWhy it mattersWarning sign
currentThreadsBusy / maxThreadsSingle most important Tomcat signal; tells you if the executor is saturatedSustained ratio above 0.80; ratio of 1.0 means active queuing
connectionCount vs maxConnectionsTells you if the poller is the bottleneck, independent of threadsRatio approaching 1.0 while request rate is flat
Accept queue Recv-Q (ss -tnl)Invisible to JMX; only OS-level signal that connections are being droppedSustained non-zero value; equal to acceptCount means drops
Post-GC old gen baselineReal memory leak signal; instantaneous heap is noiseValleys rising over hours or days
Metaspace after redeployClassloader leak signatureStep increase per redeploy that does not drop
activeSessions per contextSessions are heap consumers with no memory backpressureMonotonic growth without plateau
GC pause time and Full GC countDirect latency injector; with G1 any Full GC is abnormalFull GCs appearing; pause time climbing
errorCount vs requestCountCombined 4xx/5xx rate; cannot separate without access logsSustained ratio above baseline

How Netdata helps

  • Per-second collection of currentThreadsBusy, currentThreadCount, and maxThreads from the Catalina:type=ThreadPool MBeans lets you see the executor saturate in real time, before a five-minute aggregation window hides the cliff edge.
  • Correlating thread pool saturation with request processing time and GC pause time in the same UI separates backend-driven thread exhaustion from GC-driven latency. CPU low with threads at max points one direction; CPU high with Full GCs points another.
  • JVM memory pool charts break out Eden, Survivor, Old Gen, and Metaspace separately. The post-GC old gen baseline and the Metaspace staircase across redeploys are visible without manual jstat sessions.
  • Anomaly detection on session and connection counts surfaces slow accumulation that static thresholds miss: sessions creeping up from bot traffic, connections creeping up from a misconfigured proxy keepalive pool.
  • OS-level metrics alongside JVM metrics let you read accept queue depth, file descriptor usage, and process RSS in the same view as the Tomcat signals, which is where the real diagnosis happens.