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-backend-timeout-missing ▌

Operations Guides

Tomcat threads blocked forever: the missing outbound timeout

The JVM is healthy. Heap is fine, no Full GCs, CPU sits at 5%, and the process answers a TCP connect on 8080 within milliseconds. But every HTTP request hangs, the access log has gone quiet, and clients are timing out. When you finally grab a thread dump, most of the http-nio-8080-exec threads are parked in the same stack frame: java.net.SocketInputStream.socketRead0, blocked against a backend that will never reply.

This is the missing-outbound-timeout failure. It is one of the most common causes of Tomcat thread pool exhaustion, and it is almost never Tomcat’s fault. The threads are waiting forever because somewhere in the application or its libraries, an outbound call was made with no connect timeout and no read timeout. In Java, “no timeout” does not mean a sensible default. It means infinite.

Every request occupies one worker thread for its entire duration, and the default pool caps at maxThreads=200. When threads stop returning, the pool drains toward zero idle slots. Long before the JVM shows any distress, your service is effectively dead: the listener keeps accepting connections (up to maxConnections, default 8192 for NIO), requests queue behind the missing threads, and once the OS accept queue (acceptCount, default 100) fills, clients see connection refused.

What this means

Tomcat’s worker thread pool is a fixed, bounded resource. A request is dispatched to a worker thread the moment the NIO poller sees data on the socket, and that thread is held until the response is committed. If the request handler makes a synchronous outbound call, the same thread blocks inside that call. The connector’s own connectionTimeout (default 60000ms) governs only the client-to-Tomcat side: how long Tomcat waits for the request line and body. It has no effect on calls your application makes to other services.

The defaults are the problem. java.net.HttpURLConnection ships with setConnectTimeout and setReadTimeout both defaulting to 0, and the JDK documents 0 as an infinite timeout. Spring’s RestTemplate, when backed by the default SimpleClientHttpRequestFactory, inherits those infinite defaults. Most JDBC drivers ship with socketTimeout=0 (infinite): MySQL Connector/J has connectTimeout=0 and socketTimeout=0 by default, and PostgreSQL’s JDBC driver defaults socketTimeout to 0 even though connectTimeout defaults to 10 seconds. A thread that blocks on any of these will not return until the OS gives up on the TCP connection, which under a half-open or silent peer can be effectively never.

Tomcat has no built-in mechanism to interrupt a thread that is processing a request. StuckThreadDetectionValve can warn you, but it does not free the thread unless you explicitly set interruptThreadThreshold, which is disabled (-1) by default. The stuck thread stays stuck. If enough threads accumulate in that state, thread pool exhaustion becomes mathematically inevitable.

flowchart LR
  A["Backend stops responding"] --> B["Worker blocks in socketRead0"]
  B --> C["Thread held forever, no read timeout"]
  C --> D["Pool drains toward maxThreads"]
  D --> E["New requests queue for a free thread"]
  E --> F["Accept queue (acceptCount) fills"]
  F --> G["Kernel refuses connections, 503s rise"]
  G --> H["Service down: JVM healthy, CPU low"]

Common causes

CauseWhat it looks likeFirst thing to check
HttpURLConnection with no timeouts setThreads in socketRead0 against an outbound hostjstack: many exec threads in java.net.SocketInputStream.socketRead0
JDBC socketTimeout=0numActive climbs to maxActive; threads waiting in getConnection or statement executeJDBC URL and pool config for connectTimeout, socketTimeout, queryTimeout
RestTemplate / SimpleClientHttpRequestFactory defaultsSame frame as HttpURLConnection; Spring stack frames above socketRead0new RestTemplate() calls with no factory timeout config
No connect timeout (DNS or TCP connect hang)Threads in connect(), often with DNS resolution in the stacksetConnectTimeout / connectTimeout on the client
StuckThreadDetectionValve not configuredNo stuck-thread warnings in catalina.out even though threads are visibly stuckgrep StuckThreadDetectionValve server.xml
Misread server.tomcat.connection-timeoutYou “set the timeout” and threads still blockThat property is client-to-Tomcat, not Tomcat-to-backend

Quick checks

# Check thread pool utilization via Manager Status XML
curl -s -u "$USER:$PASS" 'http://localhost:8080/manager/status?XML=true' | \
  grep -oP '(maxThreads|currentThreadsBusy|currentThreadCount)="[0-9]+"'

# Read-only JMX: thread pool saturation
java -jar jmxterm.jar -l localhost:9090 -n -v silent -e \
  "get -b Catalina:type=ThreadPool,name=\"http-nio-8080\" currentThreadsBusy currentThreadCount maxThreads"

# Thread dump - the diagnostic goldmine (read-only, safe on a live JVM)
jstack "$(pgrep -f 'catalina.startup.Bootstrap')" > /tmp/tomcat-threads.txt

# How many exec threads are blocked in a native socket read?
grep -c 'socketRead0' /tmp/tomcat-threads.txt

# Group exec threads by their top application stack frame
grep -A 5 'http-nio-8080-exec' /tmp/tomcat-threads.txt | grep -E '^\s+at ' | sort | uniq -c | sort -rn | head

# JVM CPU should be LOW if threads are stuck on I/O (differentiates from GC/CPU spiral)
ps -p "$(pgrep -f 'catalina.startup.Bootstrap')" -o %cpu,%mem,etime

# Accept queue depth (last buffer before the kernel refuses connections)
ss -tnl 'sport = :8080'

# Is StuckThreadDetectionValve even configured?
grep -i 'StuckThreadDetectionValve' "$CATALINA_BASE/conf/server.xml" || echo "NOT CONFIGURED"

# JDBC pool pressure (bean name varies by pool implementation)
java -jar jmxterm.jar -l localhost:9090 -n -v silent -e \
  "get -b tomcat.jdbc:type=ConnectionPool,name=\"jdbc/mydb\" numActive numIdle maxActive waitCount"

How to diagnose it

  1. Confirm it is thread starvation, not GC or CPU. currentThreadsBusy should be at or near maxThreads, JVM CPU should be low, and there should be no Full GC storm. If CPU is high and threads are busy, you are looking at a CPU-bound or GC spiral instead.

  2. Take two thread dumps 30 to 60 seconds apart. jstack is read-only and safe on a live JVM. Threads that appear in the same stack frame in both dumps are genuinely stuck. Threads that move between dumps are just slow.

  3. Look for the signature frame. The classic stuck-on-outbound-call pattern is java.net.SocketInputStream.socketRead0 (Native Method). Group all http-nio-8080-exec threads by their top few stack frames. When dozens are parked in the same outbound call site, that is your culprit path.

  4. Read up the stack to identify the outbound target. The frames above socketRead0 tell you whether the call is HTTP (HttpClient, OkHttp, HttpURLConnection, RestTemplate) or JDBC (a driver-specific socket read). The application frame above that tells you which service or database the call was aimed at.

  5. Correlate with backend latency. If you have per-backend latency metrics, the stuck Tomcat threads line up in time with a latency spike or outage on exactly one downstream. Thread pool exhaustion is almost always a backend problem wearing a Tomcat costume.

  6. Verify the missing timeout. Once you know the call site, inspect the client configuration. Look for new RestTemplate(), an HttpClient built without a RequestConfig, a JDBC URL missing socketTimeout, or a DataSource whose validationQueryTimeout is -1. The fix is almost always “the timeout was never set,” not “the timeout was set too high.”

Metrics and signals to monitor

SignalWhy it mattersWarning sign
currentThreadsBusy / maxThreadsThe bounded resource that dies firstSustained at or near 1.0 with traffic still arriving
Request throughputStuck threads stop returning, so throughput collapsesThroughput drops while upstream traffic is unchanged
Request processing timeThreads held longer inflate processing timeAverage rises; p99 from access log %D rises much faster
JVM CPULow CPU with all threads busy marks an I/O-bound stuck patternCPU under 20% while currentThreadsBusy == maxThreads
StuckThreadDetectionValve stuckThreadCountDirect count of threads over the thresholdAny non-zero value sustained; requires the valve to be configured
JDBC pool numActive / maxActiveDB pool exhaustion cascades into thread exhaustionnumActive pinned at maxActive with waitCount > 0
Accept queue Recv-QLast buffer before the kernel refuses connectionsSustained non-zero Recv-Q on the listen socket
Per-backend latencyIdentifies which backend owns the stuck threadsOne backend’s latency spikes in lockstep with the thread drain

Fixes

Set HTTP client connect and read timeouts

For HttpURLConnection, set both before connecting:

conn.setConnectTimeout(5000);   // 5s to establish TCP
conn.setReadTimeout(10000);     // 10s to receive any byte

A value of 0 means infinite. Always set both; a missing read timeout is the one that bites in production.

For Spring RestTemplate, the default SimpleClientHttpRequestFactory inherits HttpURLConnection’s infinite timeouts. Configure the factory explicitly, or switch to a client (Apache HttpClient, OkHttp) and configure timeouts on the builder. OkHttp defaults connect, read, and write timeouts to 10 seconds, which is why OkHttp-based services rarely exhibit this failure.

For Apache HttpClient 5, set both connect and response (socket) timeouts explicitly via RequestConfig or ConnectionConfig; note that RequestConfig.Builder.setConnectTimeout is deprecated in 5.x in favour of ConnectionConfig.Builder.setConnectTimeout. The response timeout is easy to miss: if it is left undefined, the connection-level socket timeout applies, and if that is also unset, reads can block indefinitely.

Set JDBC socket and query timeouts

Driver-level socket timeouts are the real fix. They cap every statement, including the ones your ORM generates that you never see. Add them to the JDBC URL or DataSource properties.

  • MySQL Connector/J: connectTimeout and socketTimeout both default to 0 (infinite). Set them explicitly, for example connectTimeout=5000&socketTimeout=30000. Note that socketTimeout is a hard ceiling on every query, so set it above your slowest legitimate query or you will get false positives during long-running operations.
  • PostgreSQL JDBC: connectTimeout defaults to 10 seconds, but socketTimeout defaults to 0 (infinite). Set socketTimeout explicitly.
  • Tomcat JDBC pool: maxWait (default 30000ms) caps how long a thread waits to borrow a connection, and removeAbandonedTimeout (default 60s) reclaims connections held too long. Neither protects you from a statement that hangs after checkout; the driver socketTimeout does.

A statement-level setQueryTimeout is complementary but requires the application to set it per statement. The driver socketTimeout is global and is the one that catches uninstrumented code.

Configure StuckThreadDetectionValve

This does not free threads by itself, but it makes the failure visible. Add it to server.xml (or context.xml) inside the relevant Host or Context:

<Valve className="org.apache.catalina.valves.StuckThreadDetectionValve"
       threshold="60"
       interruptThreadThreshold="600" />

The default threshold is 600 seconds (10 minutes). For most user-facing services, 60 seconds is more useful as an early signal. interruptThreadThreshold defaults to -1, which means Tomcat will log the stuck thread but never interrupt it. Setting it to a finite value lets Tomcat attempt to interrupt threads that have been stuck for far too long, which can recover a pool that has drained into a single bad code path. Treat interruption as a safety net, not a strategy: a thread interrupted mid-call can leave resources in an inconsistent state.

Do not confuse server.tomcat.connection-timeout with a backend timeout

A common misdiagnosis: an operator “sets the Tomcat timeout” via Spring Boot’s server.tomcat.connection-timeout, threads still block, and the team concludes timeouts do not help. That property governs how long Tomcat waits for the client to send the HTTP request line after the connection is accepted. It has no effect on calls your servlet makes to a database or downstream HTTP service. The outbound timeout has to be set on the outbound client.

Circuit breakers and bulkheads

Timeouts stop the bleeding; circuit breakers stop the cascade. Once a backend is failing, a circuit breaker lets subsequent calls fail fast instead of consuming a thread for the full timeout window. Bulkheads (separate thread pools per downstream) prevent one bad backend from consuming the entire HTTP worker pool. These are application-level concerns, but they are the structural fix that turns “one slow dependency takes down the whole service” into “one slow dependency degrades one feature.”

Prevention

  • Every outbound call has a connect timeout and a read timeout. No exceptions for internal services; internal services hang too.
  • JDBC socketTimeout is set in every DataSource. Audit every JDBC URL and pool configuration, not just the application code.
  • StuckThreadDetectionValve is configured in every server.xml. With a threshold matched to your latency budget, not the 10-minute default.
  • Per-backend latency is monitored. If you cannot see each downstream’s latency, you cannot correlate it with the thread drain.
  • No code path constructs an HTTP client or RestTemplate without explicit timeouts. Treat new RestTemplate() and HttpURLConnection.openConnection() without timeouts as a code-review failure.
  • Thread dumps are taken during incidents, not just postmortems. jstack is cheap and read-only; the stack frames are the evidence.

How Netdata helps

  • Per-second thread pool utilization (currentThreadsBusy / maxThreads) makes the drain visible long before the pool hits the wall.
  • The composite signature (threads at max, throughput collapsing, processing time rising, JVM CPU low) is the exact fingerprint of a stuck-on-backend pattern, and per-second resolution lets you watch it form in real time.
  • StuckThreadDetectionValve stuckThreadCount surfaces directly once the valve is configured, turning a log-only signal into an alertable metric.
  • JDBC connection pool metrics (numActive, numIdle, maxActive, waitCount) let you distinguish a database pool exhaustion cascade from a pure HTTP-backend hang.
  • Correlating Tomcat thread state with downstream service latency, when Netdata is also monitoring the backend, pinpoints which backend owns the stuck threads. That is the part of this diagnosis that takes longest to do by hand.
  • ML anomaly detection on thread-pool and throughput signals flags the drain even when no single static threshold has been crossed yet.