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-session-timeout-tuning ▌

Operations Guides

Tomcat session timeout and maxActiveSessions: bounding session memory

HTTP sessions are heap-resident state. Each active session holds references to its attribute objects, and those objects remain live until the session is invalidated or expires. Two configuration parameters bound this heap usage: the session timeout (how long a session can live) and maxActiveSessions (how many can exist simultaneously).

At their defaults, neither bounds memory. The session timeout defaults to 30 minutes. maxActiveSessions defaults to -1, meaning no limit. Under sustained traffic, bot-driven session creation, or a traffic spike, sessions accumulate until the heap fills. The result is either an OutOfMemoryError or a GC death spiral where the JVM spends most of its CPU collecting and barely processing requests.

What it is and why it matters

Tomcat’s session manager (StandardManager by default) stores HTTP sessions in the JVM heap. Each session object carries creation time, last access time, and a map of attribute name to value. The attribute values are application objects: shopping carts, user profiles, cached query results, CSRF tokens. Their size ranges from a few hundred bytes to megabytes depending on what the application stores.

Two settings bound the heap impact of this map:

  • Session timeout (<session-timeout> in web.xml): how long a session can remain idle before Tomcat expires it. Default is 30 minutes. A 30-minute timeout means sessions created during a traffic burst linger for half an hour after the user leaves.
  • maxActiveSessions (Manager attribute): the maximum number of concurrent sessions Tomcat will allow. Default is -1, meaning unlimited. When a non-negative limit is set and a new session would exceed it, Tomcat throws IllegalStateException instead of creating the session.

A short timeout with no ceiling still allows bursts to spike memory. A ceiling with a long timeout fills up permanently. You need both for effective bounding.

How it works

Session creation

Sessions are created when application code calls HttpServletRequest.getSession() or getSession(true). If the request carries no valid session cookie, Tomcat creates a new StandardSession, assigns it an ID, registers it in the session manager, and returns it. The session now consumes heap.

If maxActiveSessions is set to a non-negative value and the current session count equals or exceeds that value, creation fails. Tomcat throws IllegalStateException (TooManyActiveSessionsException) from inside getSession, so the exception surfaces within the application call path rather than before the servlet is invoked. The request fails with a 500, but the JVM survives and other users continue to be served.

flowchart TD
    A[New session requested] --> B{maxActiveSessions
reached?} B -- "Yes, cap set" --> C[IllegalStateException
clean rejection] B -- "No, or -1 unlimited" --> D[Session stored in heap] D --> E[Session lives until
idle timeout expires] E --> F[Background thread
expires session, frees heap] C --> G[Request fails
JVM survives]

With maxActiveSessions=-1 (the default) and a long timeout, the path from session creation through expiration runs faster than the background thread can clear stale sessions. activeSessions grows without bound.

Session expiration is not real-time

Sessions do not expire the instant their timeout elapses. Expiration is handled by a background processing thread that runs periodically on each container (Engine, Host, or Context). The check frequency depends on two settings:

  • backgroundProcessorDelay: the interval at which the background thread runs on the container. The default is 10 seconds on both branches: StandardEngine sets backgroundProcessorDelay to 10, and an Engine/Host/Context left at -1 inherits the value of its parent container.
  • processExpiresFrequency: how many background processing cycles pass between expiration sweeps on StandardManager. Default is 6.

With defaults of 10 seconds and 6 cycles, expiration sweeps run roughly every 60 seconds. Sessions can persist beyond their configured timeout by up to that interval. Under heavy load, if the background thread is starved by request processing or GC pauses, sessions may linger significantly longer. activeSessions can be higher than a naive calculation based on timeout alone would predict.

Session persistence across restarts

StandardManager can persist active sessions to disk across restarts. The behavior differs between Tomcat major versions:

Verified against the source: Tomcat 9.0.x StandardManager defaults pathname to SESSIONS.ser (persistence on); Tomcat 10.1.x defaults it to null (persistence off). Confirm the behavior on the exact version under management before relying on it.

  • Tomcat 9.0.x: Persistence is described as enabled by default, writing to a file named SESSIONS.ser, with sessions serialized on shutdown and deserialized on startup.
  • Tomcat 10.1.x: Persistence is disabled by default (pathname defaults to null). No sessions are saved or restored unless you explicitly set a pathname.

If persistence is enabled, deserialized sessions count toward maxActiveSessions immediately on startup. If the pre-restart session count was near the ceiling, new sessions are rejected right after startup with no apparent traffic cause.

Where it shows up in production

Bot and crawler traffic. Bots that do not send cookies create a new session on every request if the application calls getSession(). A crawler hitting hundreds of pages generates hundreds of sessions, each consuming heap for the full timeout period. With maxActiveSessions=-1 and a 30-minute timeout, this is a direct path to heap exhaustion.

Traffic spikes with long timeouts. A 30-minute timeout means every session created during a peak lives for 30 minutes after the user becomes idle. activeSessions accumulates linearly with traffic. The count reflects the last 30 minutes of unique visitors, not the current load. A midday traffic spike can push session-driven heap usage to dangerous levels hours after the spike subsides.

Post-restart session loading. If StandardManager persistence is enabled, restarting Tomcat reloads serialized sessions from SESSIONS.ser. These count toward maxActiveSessions. If the session count was near the ceiling before the restart, new sessions may be rejected immediately after startup.

GC death spiral from session accumulation. Sessions that survive long enough are promoted to old gen. A large old gen population of session objects drives Full GCs. With G1GC, any Full GC is a red flag: it means the concurrent collector failed to keep up. The heap appears full after every GC cycle because the sessions are live data that cannot be collected. This looks like a memory leak but is actually a sizing problem: too many sessions, too long-lived.

Checking session state

Session metrics require JMX. They are not exposed via the Manager application’s status XML.

# Check active sessions, rejections, expiry, and max alive time for the root context.
# Adjust host= and context= to match the deployed application.
java -jar jmxterm.jar -l localhost:9090 -n -v silent -e \
  "get -b Catalina:type=Manager,host=localhost,context=/ activeSessions rejectedSessions expiredSessions sessionMaxAliveTime"

If rejectedSessions is above zero, the ceiling is being hit. If expiredSessions is not increasing over time, expiration has stalled. If activeSessions is growing monotonically without a plateau, sessions are accumulating faster than they expire.

Tradeoffs and when to use it

Setting the session timeout

Tune the timeout to match real user behavior. For an interactive web application where users make requests every few seconds, a 5 to 15 minute timeout is usually sufficient. A 30-minute or longer timeout is appropriate only for applications with genuine long idle periods between interactions (admin consoles, dashboards, internal tools).

Shortening the timeout is the single most effective change for reducing session-driven heap pressure. It costs nothing in infrastructure and directly reduces the steady-state session count. It is reversible: if user complaints about session expiry increase, lengthen it.

The timeout can also be set programmatically via HttpSession.setMaxInactiveInterval(). Note the unit difference: web.xml specifies minutes, while setMaxInactiveInterval() takes seconds. A mismatch here is a common source of “sessions expire too fast” or “sessions never expire” tickets.

Setting maxActiveSessions

maxActiveSessions is a circuit breaker, not a performance tuning knob. Its purpose is to prevent session-driven OOM by converting unbounded heap growth into a bounded, observable failure. When the ceiling is hit, requests that try to create new sessions get IllegalStateException instead of the JVM dying.

To size it, estimate per-session memory cost. Take a heap dump during normal operation, identify the session objects and their retained size, and divide by the session count. Multiply average per-session size by the number of sessions your heap can absorb, leaving headroom for non-session heap usage. Set maxActiveSessions to that value.

The tradeoff is user experience: legitimate users may be rejected if the ceiling is too low. Monitor rejectedSessions. When it starts climbing, either the timeout is too long, traffic has grown beyond the heap budget, or both. The fix is to shorten the timeout or increase heap, not to raise the ceiling without understanding why it was hit.

Handling the IllegalStateException error page

When maxActiveSessions is reached, IllegalStateException is thrown from inside getSession(). If you configure an error page in web.xml for this exception, use a plain HTML file, not a JSP. JSPs call getSession() by default during page processing, which triggers the same IllegalStateException in the error page, producing an unhelpful loop. If you must use JSP for the error page, add <%@ page session="false" %> at the top.

Signals to watch in production

SignalWhy it mattersWarning sign
activeSessions (JMX)Core count of live sessions consuming heapGrowing monotonically without plateau
rejectedSessions (JMX)Shows maxActiveSessions ceiling being hitAny value above zero in steady state
expiredSessions (JMX)Confirms expiration is actually happeningNot increasing over time
sessionMaxAliveTime (JMX)Longest-lived session since startupFar exceeds configured timeout
JVM heap post-GC (Old Gen)Session objects promoted to old gen are live dataRising post-GC baseline over time
Full GC count (G1GC)Session pressure drives major collectionsAny Full GC warrants investigation
HTTP 500 rateIllegalStateException surfaces as server errorSpike correlated with rejectedSessions climbing

All session metrics come from the Manager MBean: Catalina:type=Manager,host=localhost,context=/<app>. Check each deployed context separately, as session behavior varies by application.

How Netdata helps

  • activeSessions per context: Netdata collects the Manager MBean per deployed application, so you see session counts per context rather than a single aggregate. A monotonic rise in one context isolates the problem application.
  • rejectedSessions alongside activeSessions: When rejectedSessions starts climbing, Netdata shows it next to activeSessions and JVM heap in the same time window. You can confirm the ceiling was hit and see the heap pressure that caused it without cross-referencing separate tools.
  • Post-GC heap baseline per pool: Netdata tracks heap utilization per memory pool (Eden, Survivor, Old Gen, Metaspace). The post-GC valley of Old Gen reveals whether sessions are accumulating as live data. A rising Old Gen baseline correlated with a rising activeSessions count confirms session-driven heap growth.
  • GC frequency and duration: Full GC count and cumulative GC time are collected per collector. Correlating GC pauses with session count changes distinguishes session-driven pressure from other heap consumers.
  • expiredSessions rate: Netdata shows expiredSessions as a rate over time. If the rate drops to near zero while activeSessions climbs, expiration has stalled, pointing to background thread starvation or a misconfigured processExpiresFrequency.