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 / uwsgi / uwsgi-stuck-worker ▌

Operations Guides

uWSGI worker stuck in busy: a hung request that never returns

One worker sits in busy far longer than any legitimate request should take. The others cycle through idle and busy normally. The stuck worker is not crashing, not erroring, and not completing. It is holding a request open indefinitely and will stay that way until something kills it.

This is the single-worker poisoning pattern. A specific request triggered a pathological code path: blocking I/O without a timeout, a regex catastrophe, an unbounded database query, or a deadlock in a C extension. The worker called accept(), began processing, and never returned. Its request counter is frozen. Its running_time stopped advancing. One slot of your worker pool is permanently consumed.

The danger is silence. If you have 8 workers and one is stuck, your aggregate throughput drops by roughly 12%. Busy ratio creeps up slightly. Average response time shifts marginally. Nothing pages. The next stuck worker drops capacity by another 12%. If harakiri is not configured, there is no automatic recovery. Workers accumulate in stuck state until the pool is exhausted and the service is unresponsive.

What this means

uWSGI workers cycle through a state machine: idle to busy and back. Under normal conditions, time spent in busy tracks your application’s response latency. When a worker enters busy and never leaves, the request it accepted is hung on something the application code cannot resolve on its own.

The key diagnostic signal is stuck request age: the elapsed time since the in-flight request started. uWSGI exposes this via the stats server in workers[].cores[]. When in_request == 1 for a core, the field req_info.request_start holds the UNIX timestamp (seconds) when the request began. Verified: the path workers[].cores[].req_info.request_start is present in 2.0.x and master stats output. Current time minus that timestamp gives you the request age. A worker whose request age is measured in minutes or hours rather than milliseconds is stuck.

This is distinct from worker pool starvation, where all workers are busy because traffic exceeds capacity. In single-worker poisoning, most workers are healthy. The problem is one outlier that diverges from the rest.

flowchart TD
    A["Stats: one worker
status=busy, others=idle"] --> B["Check cores[].in_request
and req_info.request_start"] B --> C{"Request age
far exceeds normal?"} C -->|No| D["Slow but completing
check downstream latency"] C -->|Yes| E["Worker is stuck
inspect /proc/pid/wchan
and /proc/pid/syscall"] E --> F{"Harakiri
configured?"} F -->|Yes| G["Wait for SIGKILL
check harakiri-verbose logs"] F -->|No| H["Manual SIGKILL
required to free the slot"] G --> I["Fix root cause:
add timeout, bound query,
or fix ReDoS regex"] H --> I

Common causes

CauseWhat it looks likeFirst thing to check
Blocking I/O without timeoutWorker blocked in a network syscall, no application error logged/proc/<pid>/wchan for poll_schedule_timeout or similar; downstream service health
Regex ReDoSWorker at 100% CPU on one core, request involves user-supplied input to a complex regexCPU usage per worker; the uri field in stats for the endpoint
Unbounded queryWorker RSS climbing, database shows a long-running queryDatabase pg_stat_activity or equivalent; worker RSS trend
C extension deadlockWorker blocked in futex_wait_queue_me, no Python traceback available/proc/<pid>/wchan; whether the app uses native extensions with locks

Quick checks

Run these read-only commands to confirm a worker is stuck and identify what it is stuck on.

# List all workers with status, URI (from cores[].vars), and running_time to spot the outlier
uwsgi --connect-and-read 127.0.0.1:9191 | jq '[.workers[] | select(.pid > 0) | {id: .id, status: .status, pid: .pid, uri: ([.cores[]? | select(.in_request == 1) | .vars[]? | select(startswith("REQUEST_URI=")) | .[12:]] | first), avg_rt_ms: (.avg_rt / 1000), running_time_sec: (.running_time / 1000000)}]'

# Find in-flight request ages (the primary stuck-worker signal)
uwsgi --connect-and-read 127.0.0.1:9191 | jq --argjson now "$(date +%s)" '[.workers[] | select(.pid > 0) | .id as $wid | .cores[] | select(.in_request == 1) | {worker: $wid, core: .id, age_seconds: ($now - .req_info.request_start)}]'

# Check per-worker request counts and harakiri history
uwsgi --connect-and-read 127.0.0.1:9191 | jq '[.workers[] | select(.pid > 0) | {id: .id, requests: .requests, harakiri_count: .harakiri_count, respawn_count: .respawn_count}]'

# Inspect the stuck worker's kernel state (replace PID with the stuck worker's pid)
cat /proc/<pid>/syscall
cat /proc/<pid>/wchan

# Check if the worker's request count is frozen between two polls 5 seconds apart
uwsgi --connect-and-read 127.0.0.1:9191 | jq '[.workers[] | select(.pid > 0) | {id: .id, requests: .requests}]'
# ... wait 5 seconds, run again. A frozen request count confirms the worker is stuck.

Note: the cores[] array is suppressed if uWSGI was started with --stats-no-cores. If your stats output lacks cores[], you cannot compute stuck request age from the stats server alone. Fall back to checking whether the worker’s requests counter advances between polls.

How to diagnose it

  1. Confirm the worker is truly stuck. Run the request age query above. If age_seconds for one worker is orders of magnitude higher than the others, the request is hung. Cross-check by polling requests twice with a few seconds between polls. A worker whose request count does not advance while others do is stuck.

  2. Identify what the worker is stuck on. Read the REQUEST_URI from cores[].vars in the stats output to see which endpoint the busy worker is processing. This narrows the investigation to a specific code path.

  3. Inspect the kernel state. Read /proc/<pid>/syscall and /proc/<pid>/wchan. The syscall number and arguments tell you what kernel operation the worker is blocked in. The wchan value tells you which kernel function it is sleeping in. Together they distinguish network I/O waits, futex waits (lock contention), and CPU-bound spins.

  4. Check whether harakiri will reap it. If harakiri is configured, the master will send SIGKILL to the worker when the request exceeds the timeout. Check harakiri_count in the stats output. If it increments for that worker, harakiri fired and the worker was respawned. If harakiri-verbose is enabled, the uWSGI log will contain the blocked syscall and wchan at harakiri time, giving you the same diagnostic data without manual /proc inspection.

  5. Capture a Python traceback before killing. If --py-tracebacker <socket> is configured, each worker exposes a per-worker UNIX socket that returns the current Python traceback. Connect to it to see exactly where in the Python code the worker is stuck.

  6. Consider version-specific gotchas. Verified: issue #2706 documents the threads + post-buffering race (open in the uWSGI tracker). If you run uWSGI 2.0.x with threads > 1 and post-buffering > 0, a known race condition (issue #2706) can cause spurious harakiri kills. The harakiri deadline is a single per-worker field shared across all threads. A fast request completing on one thread zeroes the field while another thread is mid-upload, producing an expired timestamp that the master immediately acts on. If you see harakiri events only in threaded mode with post-buffering, suspect this bug rather than genuinely stuck requests. Workarounds are threads = 1 or post-buffering = 0. Verified in source: 2.0.x keeps a single per-worker harakiri deadline (uwsgi.workers[i].harakiri), while 2.1-dev uses per-core deadlines (uwsgi.workers[i].cores[j].harakiri); the per-core change has not been backported to the 2.0.x branch.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
Stuck request age (now - req_info.request_start)Directly measures how long an in-flight request has been runningAny request age approaching or exceeding your harakiri timeout, or far above baseline if harakiri is unset
Per-worker running_time outliersShows cumulative time spent processing; a stuck worker diverges from peersOne worker’s running_time grows far faster than others, or stops growing entirely (frozen mid-request)
Worker status persistenceA worker that stays busy across multiple polls is not cycling normallySame worker status == "busy" across 3+ consecutive polls while others toggle idle/busy
Harakiri rate (harakiri_count delta)Each harakiri kill means a request exceeded the timeout and was forcibly terminatedAny non-zero delta in a deployment where harakiri is normally silent
Per-worker requests deltaA frozen request counter means the worker is not completing any workOne worker shows zero delta while others advance normally
Per-worker RSS divergenceA memory-intensive stuck request (unbounded query, large allocation) shows as RSS growth on one workerOne worker’s RSS significantly exceeds the others

Fixes

If harakiri is configured

Wait for it to fire. The master will send SIGKILL to the worker and respawn it. Each kill increments harakiri_count (per-worker, monotonic, never reset even on respawn) and respawn_count. The client receives a 502 from the upstream proxy.

If harakiri-verbose is enabled, the uWSGI log will contain the blocked syscall and wchan at harakiri time. Use this output to identify the root cause without needing to catch the worker alive.

Verified: harakiri-graceful-timeout and harakiri-graceful-signal are valid options introduced in 2.0.22 (changelog; harakiri-graceful-signal defaults to SIGTERM). If you run uWSGI 2.0.22 or later, consider configuring harakiri-graceful-timeout and harakiri-graceful-signal. These enable a two-stage kill: the master first sends a configurable signal (default SIGTERM), giving the worker a chance to run cleanup handlers or log additional state, then sends SIGKILL if the graceful timeout expires. This is safer for workers holding external resources like database connections or file locks.

If harakiri is not configured

The worker stays stuck indefinitely. You must kill it manually.

# WARNING: this terminates the in-flight request. The client gets a connection
# reset or 502. The master will respawn the worker automatically.
kill -KILL <pid>

This frees the worker slot, but the root cause is unfixed. The same request pattern will poison another worker. Without harakiri, there is no safety net.

Root cause fixes by category

Blocking I/O without timeout. This is the most common cause. Audit all outbound calls: database queries, HTTP client requests, Redis operations, DNS lookups. Every external call needs an explicit timeout. The default timeout for many Python HTTP clients and database drivers is infinite or dangerously long (30 seconds or more). Set per-call timeouts that are shorter than your harakiri value.

Regex ReDoS. A catastrophic regex against adversarial input can consume 100% of a CPU core indefinitely. Identify the regex from the stuck worker’s uri and the application’s route handlers. Replace the pattern with a non-backtracking alternative, add input length limits, or use a regex engine with guaranteed linear time. The worker will show high CPU usage on one core, distinguishable from I/O-bound hangs where CPU is near zero.

Unbounded query. A SELECT * FROM large_table without LIMIT, or an ORM query that materializes an entire result set into memory. The worker’s RSS will climb steadily while the query runs. Add pagination, streaming results, or explicit LIMIT clauses. Monitor database query duration alongside worker metrics.

C extension deadlock. A native extension (database driver, image processing library, crypto module) holds a lock and never releases it. The worker blocks in futex_wait_queue_me in /proc/<pid>/wchan. This is the hardest to diagnose because Python-level tooling (py-tracebacker, tracemalloc) may not see into native code. GDB with Python extensions can sometimes extract the C-level backtrace. Fix the extension or isolate the workload.

Prevention

  • Always configure harakiri. Default uWSGI has no request timeout. Without harakiri, stuck workers have no recovery mechanism. Set harakiri to 2-3x your expected maximum legitimate request duration. Use harakiri-verbose so you get diagnostic data (syscall, wchan) when it fires.
  • Add per-request timeouts in application code. Harakiri is a blunt instrument: it kills the worker, which means the client gets a 502 and the worker must respawn. Application-level timeouts let you return a proper error response without losing the worker.
  • Monitor per-worker metrics, not just aggregates. Aggregate throughput and average response time mask single-worker problems. One stuck worker out of 8 reduces throughput by roughly 12%, which is easy to miss in a fleet-level dashboard. Track per-worker status, running_time, requests, and harakiri_count.
  • Use py-tracebacker for Python applications. It provides real-time Python tracebacks per worker without needing to attach a debugger. Combined with harakiri, it automatically logs the traceback when a worker is killed.
  • Track harakiri as a rate, not a count. harakiri_count is per-worker and monotonic. It never resets, even across respawns. Alert on the delta over a time window, not the absolute value. Any sustained non-zero rate in a deployment where harakiri is normally silent indicates requests are hanging.

How Netdata helps

  • Per-second collection of uWSGI stats server data, including per-worker status, running_time, avg_rt, requests, harakiri_count, and respawn_count, gives you the resolution to catch a stuck worker within seconds rather than waiting for the next polling interval.
  • ML-based anomaly detection flags per-worker divergence. A single worker whose running_time or avg_rt breaks from the baseline of its peers surfaces as an anomaly even when aggregate metrics look healthy.
  • Stuck request age can be computed from cores[].req_info.request_start and correlated with downstream dependency metrics (database latency, external API response time) in a single view, shortening root-cause identification.
  • Harakiri rate tracking with per-worker granularity distinguishes a single poisoned worker from a systemic harakiri death spiral where all workers are being killed.
  • Correlation with OS-level signals (per-process CPU, RSS, /proc state) alongside uWSGI metrics helps distinguish I/O-bound hangs (low CPU, waiting in poll) from CPU-bound spins (100% CPU, ReDoS or infinite loop).