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 / oracle-database / oracle-database-lock-contention-cascade ▌

Operations Guides

Oracle lock contention cascade: one idle session that stalls the whole application

An application opens a transaction, updates a few rows on a hot table, and never commits. A developer’s SQL tool is waiting for input, a connection pool returned a dirty connection, or a batch job is mid-update. From the database’s perspective the session is INACTIVE and waiting on SQL*Net message from client. From the application’s perspective, every other transaction touching those rows is stuck.

What follows is the lock contention cascade. Waiters queue on enq: TX - row lock contention. Application connection pools, seeing requests time out, spin up more sessions. Those new sessions hit the same rows and queue too. Process and session counts climb toward the PROCESSES and SESSIONS limits. Eventually ORA-00020 starts refusing new connections, the pool is wedged, and a single stuck session has become an application-wide outage.

The database looks healthy to the wrong checks. Instance is OPEN. Listener responds. CPU is low. Throughput is collapsing.

What this means

A TX enqueue in mode 6 (exclusive row lock) is Oracle’s normal mechanism for serializing updates to the same row. The cascade becomes an incident when the holder stops making progress without rolling back. The distinguishing signals are:

  • Waiters accumulate on enq: TX - row lock contention (or enq: TM - contention for unindexed foreign keys).
  • The session pointed to by V$SESSION.BLOCKING_SESSION is INACTIVE and typically shows the idle event SQL*Net message from client.
  • V$SESSION.SQL_ID for the blocker is often NULL because the session is between statements, not currently executing.
  • Transactions on different rows still succeed, so the outage looks partial and intermittent from the application side.
  • TPS drops even though the instance, listener, and storage all look fine.

This pattern is distinct from the Archive Hang, where every session waits on log file switch (archiving needed) and no transactions succeed at all. See the archive hang pattern for that failure mode. In a lock cascade some transactions succeed; in an archive hang everything that generates redo freezes.

flowchart TD
    A[Session S1: uncommitted DML on hot rows] --> B[TX lock mode 6 held]
    B --> C[S2 tries to update same rows]
    C --> D[Waits on enq: TX - row lock contention]
    D --> E[App pool: request timeout]
    E --> F[Pool opens more sessions]
    F --> G[New sessions also block on same rows]
    G --> H[Session/process count climbs]
    H --> I[PROCESSES limit hit: ORA-00020]
    I --> J[Application-wide outage]

Common causes

CauseWhat it looks likeFirst thing to check
Application code path with no COMMITOne blocker INACTIVE for many minutes, many waiters, repeat SQL patternV$SESSION.BLOCKING_SESSION chain; exception handling in the code path
Connection returned to pool dirtyRecurring TX waits across many sessions, repeat blocker SIDs from the poolPool release/close semantics; auto-commit config
Developer tool left a transaction openSingle interactive user, low wait count but high impact, off-hoursV$SESSION.PROGRAM (sqldeveloper, toad); SQL_EXEC_START
Long-running batch holding locksLarge USED_UBLK in V$TRANSACTION, batch session ACTIVEV$TRANSACTION join V$SESSION ordered by USED_UBLK
Distributed transaction in doubtRECO involved, locks persist across disconnectsDBA_2PC_PENDING, V$GLOBAL_BLOCKED_LOCKS
Unindexed foreign key (TM cascade)enq: TM - contention rather than TX, parent delete or updateDBA_CONSTRAINTS and DBA_IND_COLUMNS for FK columns

Quick checks

Run these as a DBA-privileged user. All are read-only.

-- 1. Who is waiting on enq: TX right now, and who is blocking them
SELECT SID, SERIAL#, USERNAME, EVENT, SECONDS_IN_WAIT,
       BLOCKING_SESSION, BLOCKING_SESSION_STATUS
FROM V$SESSION
WHERE EVENT LIKE 'enq: TX%' AND STATE = 'WAITING'
ORDER BY SECONDS_IN_WAIT DESC;
-- 2. Count of waiters per blocker (the cascade signature)
SELECT BLOCKING_SESSION, COUNT(*) AS waiters,
       MAX(SECONDS_IN_WAIT) AS oldest_wait_sec
FROM V$SESSION
WHERE BLOCKING_SESSION IS NOT NULL
GROUP BY BLOCKING_SESSION
ORDER BY waiters DESC;
-- 3. Profile the blocker session itself
SELECT SID, SERIAL#, USERNAME, STATUS, SERVER, PROGRAM, OSUSER, MACHINE,
       EVENT, SQL_ID, PREV_SQL_ID, SQL_EXEC_START, MODULE, ACTION
FROM V$SESSION
WHERE SID IN (
  SELECT BLOCKING_SESSION FROM V$SESSION WHERE BLOCKING_SESSION IS NOT NULL
);
-- 4. Long-held TX exclusive locks (the proactive check)
SELECT S.SID, S.SERIAL#, S.USERNAME, S.STATUS, S.PROGRAM,
       L.TYPE, L.LMODE, L.REQUEST, L.CTIME
FROM V$LOCK L JOIN V$SESSION S ON L.SID = S.SID
WHERE L.TYPE = 'TX' AND L.LMODE = 6 AND L.CTIME > 300
ORDER BY L.CTIME DESC;
-- 5. What objects are locked, by which session
SELECT LO.SESSION_ID, S.USERNAME, O.OWNER, O.OBJECT_NAME, O.OBJECT_TYPE
FROM V$LOCKED_OBJECT LO
JOIN DBA_OBJECTS O ON LO.OBJECT_ID = O.OBJECT_ID
JOIN V$SESSION S ON LO.SESSION_ID = S.SID
ORDER BY LO.SESSION_ID;
-- 6. Lock chain depth via DBA_WAITERS / DBA_BLOCKERS
-- Requires catblock.sql to have been run; not available on all instances
SELECT * FROM DBA_WAITERS;
SELECT * FROM DBA_BLOCKERS;
-- 7. How close are we to the process/session limit
SELECT RESOURCE_NAME, CURRENT_UTILIZATION, MAX_UTILIZATION, LIMIT_VALUE
FROM V$RESOURCE_LIMIT
WHERE RESOURCE_NAME IN ('sessions', 'processes');
-- 8. TPS sanity check (run twice, a few seconds apart, then delta)
SELECT NAME, VALUE FROM V$SYSSTAT
WHERE NAME IN ('user commits', 'user rollbacks');
-- 9. Largest in-flight transactions (relevant when batch is the blocker)
SELECT S.SID, S.SERIAL#, S.USERNAME, S.SQL_ID, S.STATUS,
       T.USED_UBLK AS used_undo_blocks
FROM V$TRANSACTION T
JOIN V$SESSION S ON T.SES_ADDR = S.SADDR
ORDER BY T.USED_UBLK DESC;

How to diagnose it

  1. Confirm the pattern. Run check 1 and check 2 together. Many waiters on enq: TX pointing at one or a small number of blocker SIDs is a cascade. Waiters spread across many unrelated blockers is a systemic locking issue (often an unindexed FK driving TM contention), not a single-session cascade.

  2. Identify the real blocker, not the apparent one. BLOCKING_SESSION can chain: A blocks B, B blocks C, and C’s row points at B. Walk the chain by repeatedly resolving the blocker’s own BLOCKING_SESSION until it is NULL. The session at the head of the chain is the true root.

  3. Classify the blocker. From check 3, note:

    • STATUS: INACTIVE points at abandoned or think-time transactions; ACTIVE points at a long-running statement.
    • PROGRAM and MACHINE: a sqldeveloper.exe, toad.exe, or ad-hoc client from a workstation is almost always a human-driven mistake.
    • SQL_EXEC_START: if this is hours old on an INACTIVE session, the transaction has been open that long.
    • SQL_ID is frequently NULL because the session is between statements. PREV_SQL_ID is sometimes populated, but it can be misleading because it changes as cursors age out.
  4. Recover the blocking DML when SQL_ID is NULL. This is the operator failure point most teams hit. When the blocker is INACTIVE, V$SESSION.SQL_ID is gone. Two paths:

    • Join V$LOCKED_OBJECT to DBA_OBJECTS (check 5) to identify the locked objects, then correlate with application code paths that update those tables.
    • Join V$OPEN_CURSOR by session (SADDR/SID) to candidate V$LOCKED_OBJECT sessions, then inspect SQL_ID/SQL_TEXT in pinned or cached cursors. Treat any match as a lead, not proof: V$OPEN_CURSOR also includes cached cursors, so reliability depends on the cursor still being open/relevant and on the release.
    • For deterministic confirmation, LogMiner against the redo for the locked transaction can show the exact statements. This is heavyweight for an active incident.
  5. Decide whether to kill. The decision matrix:

    • Blocker is a developer tool or interactive session: kill it.
    • Blocker is a batch job in the middle of a controlled long transaction: do not kill unless business impact justifies losing the work. Coordinate with the job owner first.
    • Blocker is a distributed transaction in doubt: resolve via DBA_2PC_PENDING (force commit or rollback) rather than killing the session.
  6. Verify resolution. After acting, re-run check 1 and check 2. The waiter count should drop within seconds. TPS (check 8) should recover. If waiters persist, there was more than one blocker or the kill did not roll back the transaction cleanly.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
V$SESSION.EVENT = 'enq: TX - row lock contention' count and oldest waitThe most direct cascade signalAny single blocker with >10 waiters, or any waiter blocked >5 minutes
V$LOCK rows with TYPE=‘TX’, LMODE=6, CTIME > 300Catches the idle-holder pattern that wait-event views miss because the holder is on an idle eventNon-zero count means a TX lock held >5 minutes
V$SESSION.BLOCKING_SESSION chain depthShows whether one root is responsibleMax chain depth >3 or waiter count growing
V$RESOURCE_LIMIT for sessions and processesCascade escalates to ORA-00020 when limits are hitCURRENT_UTILIZATION >85% or MAX_UTILIZATION = LIMIT_VALUE
V$SYSSTAT user commits delta (TPS)Throughput collapses before connections fail>50% drop from baseline sustained >5 minutes
enqueue deadlocks statistic and ORA-00060 in alert logDeadlocks indicate inconsistent lock ordering, a separate app bugAny non-zero rate; deadlocks auto-resolve but signal design issues
V$TRANSACTION.USED_UBLK for sessions holding TX locksLong-held transactions hold undo too, risking ORA-01555Large undo footprint with long MAXQUERYLEN against the same undo tablespace

The single highest-value proactive signal is the V$LOCK long-held TX check. It catches the pattern that pure wait-event monitoring misses, because the holder sits on SQL*Net message from client and looks idle.

Fixes

Immediate: break the chain

When business impact justifies it, the immediate fix is to terminate the blocker and let Oracle roll back the transaction:

-- Destructive: kills the session and rolls back its transaction
ALTER SYSTEM KILL SESSION 'sid,serial#' IMMEDIATE;

IMMEDIATE rolls back ongoing transactions, releases session locks, and recovers session state without waiting for the session to reach a clean interrupt point. Without it, the kill is deferred until the session reaches a state Oracle considers safe to terminate. For parallel transaction recovery, verify rollback progress with V$FAST_START_TRANSACTIONS:

-- STATE = 'RECOVERING' with growing UNDOBLOCKSDONE means rollback is in progress
SELECT * FROM V$FAST_START_TRANSACTIONS;

For RAC, the kill must target the instance where the session actually runs. Use GV$SESSION.BLOCKING_INSTANCE to find it, then connect to that instance or use the instance qualifier in the KILL command. Killing a session whose work was a four-hour batch update will roll back for hours; weigh that cost before pulling the trigger.

Where Oracle documents Priority Transactions for your release, it can short-circuit some cascades by automatically rolling back a lower-priority holder when a higher-priority waiter has exceeded its wait target. The current reference names TXN_PRIORITY, PRIORITY_TXNS_MODE, and PRIORITY_TXNS_{HIGH,MEDIUM}_WAIT_TARGET; older development previews used TXN_AUTO_ROLLBACK_* names. Check the installed release/patch documentation before relying on this, and do not assume a 19c backport.

Resolve a distributed in-doubt transaction

If the blocker is a distributed transaction left in a prepared state, RECO normally resolves it. When RECO cannot (network to the coordinator is gone, coordinator dead), the lock persists:

-- Inspect pending in-doubt transactions
SELECT * FROM DBA_2PC_PENDING;

-- Force commit or rollback after confirming with the application owner
-- COMMIT FORCE 'local_tran_id';
-- ROLLBACK FORCE 'local_tran_id';

Decide force-commit vs force-rollback based on whether the other branches already committed. Wrong choices here cause data inconsistency, so verify the global state before acting.

Fix the unindexed foreign key (TM cascade)

If the wait event is enq: TM - contention rather than enq: TX, the cause is almost always an unindexed foreign key on the child table. When the parent row is updated or deleted, Oracle escalates to a table-level lock on the child. The fix is to create an index on the FK column. Identify candidates:

SELECT C.OWNER, C.TABLE_NAME, C.CONSTRAINT_NAME, CC.COLUMN_NAME
FROM DBA_CONSTRAINTS C
JOIN DBA_CONS_COLUMNS CC USING (OWNER, CONSTRAINT_NAME)
WHERE C.CONSTRAINT_TYPE = 'R'
  AND NOT EXISTS (
    SELECT 1 FROM DBA_IND_COLUMNS IC
    WHERE IC.TABLE_OWNER = C.OWNER
      AND IC.TABLE_NAME = C.TABLE_NAME
      AND IC.COLUMN_NAME = CC.COLUMN_NAME
  );

This query flags single-column FKs without a matching index. Composite FKs need the full leading column set checked; expand the subquery for those cases.

Clean up the connection pool

If the same blocker SIDs recur from the pool across incidents, the application is returning connections with open transactions. Fix in the application:

  • Ensure every code path, including exception handlers, either commits or rolls back before returning the connection.
  • Verify the pool’s release semantics. Some pools reset the session, others do not.
  • Enable SQLNET.EXPIRE_TIME (dead connection detection) so abandoned client connections are eventually cleaned up by the server rather than holding state indefinitely.

Prevention

  • Alert on V$LOCK TYPE=‘TX’, LMODE=6, CTIME > 300. This is the single best proactive signal for the idle-holder pattern. Anything older than five minutes is suspicious on an OLTP system.
  • Alert on blocker fan-out: any BLOCKING_SESSION value with more than 10 waiters, or any session blocked more than 5 minutes with a growing chain.
  • Track V$RESOURCE_LIMIT.MAX_UTILIZATION daily. If MAX_UTILIZATION has touched the limit at any point since startup, you have already had silent ORA-00020s even if the current count is low.
  • Instrument the application so connection acquire and release events carry the user and request ID. The database SID alone is rarely enough to find the offending code path during an incident.
  • Review batch jobs for transaction scope. A million-row update in one transaction is both a lock cascade risk and an undo pressure risk (see the snapshot too old failure mode). Chunked commits trade undo and lock duration for resumability.
  • Codify an FK index review into DDL change control. A new unindexed FK can turn a previously safe parent delete into a TM cascade.

How Netdata helps

  • Per-second collection of V$SESSION wait-state aggregates surfaces an enq: TX spike within seconds of when waiters start queuing, before the cascade reaches the connection pool.
  • Correlating V$RESOURCE_LIMIT utilization against the TX wait count shows the progression from “some waits” to “approaching ORA-00020” on a single chart.
  • TPS drop detection (delta-computed from V$SYSSTAT user commits) fires alongside the wait event spike, confirming the waits are user-impacting rather than background noise.
  • Alerting on the proactive V$LOCK long-held TX pattern (LMODE=6, CTIME > 300) catches the idle-holder pattern that pure wait-event monitoring misses, because the holder sits on SQL*Net message from client and looks healthy to dashboards focused on active waits.
  • Anomaly detection on session count and wait-event distributions reduces false positives from short, expected batch-window contention.

See Oracle Database monitoring with Netdata for the full integration.

The Netdata solution

Oracle Database monitoring with Netdata

Netdata monitors Oracle Database with per-second metrics and automatic dashboards. Watch wait events, redo and archive-log activity, tablespace and undo space, and session and lock activity so the failure modes in these runbooks surface before the instance hangs.