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 / postfix / postfix-daemon-memory-growth ▌

Operations Guides

Postfix daemon memory growth: leaking RSS and OOM risk

Postfix daemons are disposable. Each smtpd, smtp, cleanup, or local process handles one session or message, then exits, keeping per-process RSS bounded at roughly 1 to 5 MB. When RSS climbs steadily on a qmgr process or a delivery agent that should have been recycled hours ago, you are looking at either a memory leak or a queue structure grown beyond normal operating size.

The one daemon that is legitimately long-lived is qmgr(8). It holds active queue entries, per-destination concurrency state, and recipient lists in memory. Its RSS scales with queue depth. But sustained RSS growth on short-lived daemons, or qmgr growth that does not recede after the queue drains, points at a leak heading toward the OOM killer.

The critical diagnostic question is whether growth correlates with load (queue size, message volume, TLS session count) or marches upward independent of it. The latter is a leak. The former is a capacity signal.

What this means

Postfix’s modular architecture isolates memory pressure to individual processes. A leaking smtpd does not directly starve qmgr. But under global memory pressure, the OOM killer does not respect process boundaries. It selects the largest RSS consumer, which is often the leaking daemon, and kills it. If that daemon is qmgr, mail flow stops until master respawns it.

Two distinct failure modes produce the same symptom of rising RSS:

  1. A genuine memory leak in Postfix code or a linked library. OpenSSL is the classic offender. The process allocates memory that is never freed, regardless of workload. Over hours or days, RSS climbs until the OOM killer intervenes.

  2. Queue-driven qmgr growth. The queue manager holds recipient lists and destination state in memory up to qmgr_message_recipient_limit (default 20000). A deferred queue with tens of thousands of entries inflates qmgr RSS substantially. This is a capacity signal, not a bug.

flowchart TD
    A["RSS rising on Postfix daemon"] --> B{"Which daemon?"}
    B -->|"qmgr"| C["Check queue depth vs RSS"]
    B -->|"smtp / smtpd"| D["Check process age"]
    C --> E{"Queue over 10K messages?"}
    E -->|"Yes"| F["Queue-driven: drain queue"]
    E -->|"No"| G["Suspected leak"]
    D --> H{"Same PID for hours?"}
    H -->|"No"| M["Likely transient: recheck under load"]
    H -->|"Yes"| G
    G --> I["Verify Postfix and OpenSSL version"]
    I --> J["Correlate with OOM kills in dmesg"]

Common causes

CauseWhat it looks likeFirst thing to check
Version-specific memory leak (BDAT handler, inline: table, FD leak)RSS grows on any daemon type, no correlation with loadpostconf -h mail_version against known-fixed releases
OpenSSL TLS session cache leakRSS grows on smtp or smtpd with heavy TLS traffic; plaintext paths stableopenssl version and TLS log volume
qmgr scaling with large queueqmgr RSS is high, active or deferred queue is enormousActive and deferred queue file counts
Anvil connection table growthanvil RSS grows with diverse client connection volumeConnection count per client IP in logs
Transient large-message processingShort-lived spike on cleanup or smtp, resolves on process exitQueue for unusually large messages
Misattributed memory from filter processesMonitoring shows high RSS under Postfix user but individual daemons are smallProcess ownership of Amavis, Rspamd, ClamAV children

Quick checks

These commands are safe and read-only. Run them from the Postfix host.

# RSS of all Postfix daemons, sorted by memory, with elapsed time
ps -eo pid,rss,etimes,comm | grep -E '(qmgr|smtp|smtpd|local|cleanup|anvil)' | sort -k2 -rn
# Check for OOM kills of Postfix processes in kernel log
dmesg -T | grep -iE 'out of memory|oom-kill|killed process' | grep -i postfix
# Postfix version (compare against known-fixed releases below)
postconf -h mail_version
# Queue manager memory-related limits
postconf -h qmgr_message_active_limit qmgr_message_recipient_limit default_process_limit
# Active and deferred queue sizes (uses configured spool path)
SPOOL=$(postconf -h queue_directory)
echo "active: $(find "$SPOOL/active" -type f | wc -l)"
echo "deferred: $(find "$SPOOL/deferred" -type f | wc -l)"
# Queue depth by destination (if qshape is installed; package postfix-perl-scripts on some distros)
qshape deferred | head -20
# Memory map summary of the largest Postfix process
pmap $(ps -eo rss,pid,comm | grep -E '(qmgr|smtp|smtpd)' | sort -rn | head -1 | awk '{print $2}') 2>/dev/null | tail -10
# OpenSSL version linked at runtime
openssl version
# Check for qmgr memory or allocation errors in mail log
# Note: log path is /var/log/mail.log on Debian/Ubuntu, /var/log/maillog on RHEL/CentOS
grep -iE 'error|fatal|panic|memory|out of mem' /var/log/mail.log | grep -i qmgr | tail -20

How to diagnose it

  1. Identify which daemon is growing. Run the RSS check and note the process name and elapsed time (etimes column). A qmgr with 80 MB RSS and a queue of 50000 messages is a capacity problem. An smtpd with 200 MB RSS alive for 4 hours is a leak.

  2. Determine if growth is load-correlated. Sample RSS and queue depth at two points, 15 to 30 minutes apart. If RSS tracks with queue size and falls when the queue drains, you have queue-driven growth. If RSS rises while the queue is stable or empty, you have a leak.

  3. Check your Postfix version against known-fixed releases. Several memory-related bugs were fixed in specific point releases:

    • Postfix 3.5.10 fixed a memory leak triggered by inline: table syntax errors in main.cf or master.cf. The bug was introduced in Postfix 3.4.
    • Postfix 3.8.6 fixed a BDAT command handler that could read message_size_limit bytes into memory per message. Introduced in Postfix 3.4; particularly dangerous on systems accepting inbound mail from untrusted sources.
    • Postfix 3.11.2 fixed a file descriptor leak after fork() failure (defect present since 1998), an unchecked null pointer after an out-of-memory condition in a library dependency, a buffer over-read when an enhanced status code has no trailing text, and an uninitialized pointer dereference in proxymap after a protocol error. The same bugfixes shipped in legacy releases 3.10.9, 3.9.10, and 3.8.16.
  4. Check the OpenSSL version for TLS session cache leaks. Postfix calls SSL_SESSION_free() to avoid leaking TLS session objects and uses SSL_SESS_CACHE_NO_INTERNAL_STORE to prevent OpenSSL from retaining sessions in its internal cache. Older OpenSSL versions, particularly in mutual TLS configurations, have known session handling leaks. Specific vulnerable OpenSSL versions are not pinned in Postfix documentation, so check the OpenSSL changelogs for your linked version.

  5. Correlate with kernel OOM events. Run dmesg -T | grep -iE 'oom-kill|killed process' and look for Postfix process names. The kernel logs the killed PID and its RSS at time of kill. If Postfix processes appear here, the leak has already progressed to system-level memory pressure. The OOM killer may have been killing and respawning daemons for some time before you noticed.

  6. Rule out misattributed memory. If monitoring shows the Postfix service account consuming excessive memory but individual daemon RSS values are all small, the attribution may be wrong. Content filters (Amavis, Rspamd), ClamAV, or SpamAssassin children often run under the same user or are managed by Postfix’s master process. Check ps -eo pid,rss,user,comm | sort -k2 -rn to identify the actual memory consumers.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
Per-process RSS (qmgr, smtpd, smtp, cleanup)Direct indicator of leak versus normal footprintMonotonic growth over hours independent of load
OOM killer events in kernel logConfirms memory pressure has crossed system thresholdAny Postfix process name in dmesg OOM output
Active queue file countqmgr RSS scales with active queue sizeSustained count above 10000 with rising qmgr RSS
Deferred queue file countLarge deferred queue inflates qmgr in-memory stateGrowth exceeding drain rate over 4 or more hours
Process elapsed time (etimes)Short-lived daemons should not persist beyond one sessionsmtpd or smtp alive for hours with growing RSS
TLS session establishment rateSession cache is a known leak vector with older OpenSSLHigh TLS rate correlated with RSS growth
System-wide available memoryGlobal pressure triggers OOM regardless of per-process attributionAvailable memory trending toward zero
default_process_limit utilizationTotal process count caps aggregate memory exposureProcess count near limit with RSS growth across many daemons

Fixes

Upgrade Postfix to a patched release

If your version matches a known-affected range, upgrading is the definitive fix. The memory-related fixes in 3.5.10, 3.8.6, and 3.11.2 address specific code paths that allocate without freeing or dereference uninitialized pointers under memory pressure.

# Check current version
postconf -h mail_version

Review the release notes for your branch and plan an upgrade. Changing qmgr limits requires a full restart, not a reload, so schedule a maintenance window.

Drain the queue to relieve qmgr memory

If qmgr RSS is high because the queue is enormous, draining the queue is the fix, not a code change:

  • Identify the dominant deferred destination and address the root cause. See Postfix deferred queue growing.
  • Temporarily hold mail for a problem destination using postsuper -h on matching queue IDs. Held messages stay in the queue but are not delivered until released with postsuper -r.
  • Reduce qmgr_message_recipient_limit to cap the in-memory recipient list. This causes message splitting but bounds qmgr memory. Requires a full restart, not a reload.
  • If the deferred queue contains only spam or backscatter, postsuper -d ALL deferred removes all deferred entries. This is destructive and cannot be undone. Verify the contents before running it. See Postfix deferred queue growing for safer selective deletion.

Reduce default_process_limit to cap total memory exposure

On memory-constrained systems, lowering default_process_limit (default 100) reduces the total number of concurrent Postfix processes. Each process carries its own RSS, so fewer concurrent processes means lower aggregate memory. The tradeoff is reduced delivery and reception concurrency.

# Check current limit
postconf -h default_process_limit

# Set a lower value (example: modifies main.cf)
postconf -e 'default_process_limit = 50'
postfix reload

Process limit changes take effect for new connections after reload. Existing processes continue until they complete or time out.

Address OpenSSL TLS session leaks

If the leak correlates with TLS traffic and your OpenSSL version has known session-handling issues:

  • Upgrade OpenSSL to a patched release.
  • Reduce smtpd_tls_session_cache_timeout or smtp_tls_session_cache_timeout to expire cached sessions faster, reducing cache size.
  • TCP Fast Open combined with OpenSSL has been reported to cause a memory leak in the SSL_connect state machine (OpenSSL issue #27028, affecting OpenSSL 3.2-3.4 on Linux with TFO enabled on both sides). If your kernel has TFO enabled and you see TLS-correlated growth, test with TFO disabled.

Restart the affected daemon as a temporary mitigation

Postfix normally recycles short-lived daemons automatically after each session. If a specific process is leaking and has not been recycled, a postfix reload forces master to re-read configuration and restart child daemons as they complete.

For qmgr specifically, which is long-lived and holds queue state in memory, a reload may not fully reset it. A full stop and start clears qmgr memory but causes a brief queue scan delay on restart as qmgr re-reads all queue directories:

# Full restart (brief downtime, qmgr rescans all queues)
postfix stop && sleep 2 && postfix start

This is a stopgap, not a fix. If the leak is in code or a linked library, RSS will climb again after restart.

Prevention

  • Monitor per-process RSS with trend detection. Static thresholds miss slow leaks. Track RSS over time and alert on sustained growth that does not correlate with queue depth or connection rate. A daemon whose RSS has not returned to baseline after 24 hours is likely leaking.
  • Keep Postfix on a current stable release. Memory-related fixes are distributed across point releases. Running an older 3.x branch means carrying known leak bugs indefinitely.
  • Record OpenSSL version alongside Postfix version. TLS session cache behavior depends on the linked OpenSSL version. Track both in your configuration inventory so you can cross-reference when a TLS-related leak is suspected.
  • Set queue depth alerts early. A deferred queue growing past 10000 messages is both a delivery problem and a memory problem for qmgr. Alert before it reaches that size.
  • Size memory for worst-case queue depth. If your qmgr_message_recipient_limit is 20000, ensure the system has enough memory for qmgr to hold that many recipient entries. The per-entry byte overhead is not documented in Postfix tuning guides, so monitor actual qmgr RSS at known queue depths to calibrate your capacity planning.

How Netdata helps

  • Netdata collects per-process RSS for every Postfix daemon at per-second resolution, making slow leaks visible hours before the OOM killer intervenes.
  • Anomaly detection flags sustained RSS growth that does not correlate with queue depth or connection rate, separating a genuine leak from a capacity spike without manual threshold tuning.
  • Queue depth metrics (active, deferred, maildrop) displayed alongside qmgr RSS show whether memory growth is queue-driven or independent of load.
  • Kernel OOM killer events correlated with Postfix process RSS in the same dashboard confirm whether memory pressure has crossed the system threshold.
  • System-wide memory utilization charts contextualize Postfix RSS against total available memory, showing how much headroom remains before OOM conditions.
  • TLS connection rate metrics help identify whether session cache growth is contributing to memory pressure on smtpd or smtp processes.