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 / redis / redis-mem-fragmentation-ratio-high

Operations Guides

Redis mem_fragmentation_ratio high: jemalloc fragmentation and active defrag

A mem_fragmentation_ratio sustained above 1.5 on a production instance means Redis holds significantly more physical memory (RSS) than its logical dataset size (used_memory), wasting RAM that could hold data or absorb spikes. This is not a memory leak. Redis uses jemalloc by default, which does not return freed pages to the OS eagerly. Deleted or resized keys leave holes in allocator arenas, inflating RSS while used_memory stays flat or drops.

The immediate risk is OOM kill. The Linux OOM killer targets RSS. An instance with 20 GB of logical data and a fragmentation ratio of 2.0 occupies 40 GB RAM. A background fork for RDB or AOF copy-on-write can push RSS over a 48 GB host or cgroup limit and kill the process, even though the dataset appears to fit.

Ignore the ratio on instances with less than 50 MB of used_memory. jemalloc’s minimum allocation granularity dominates at small scale. On larger instances, sustained elevation above 1.5 is a capacity incident.

What this means

mem_fragmentation_ratio is used_memory_rss divided by used_memory. A value of 1.0 to 1.1 is optimal; 1.1 to 1.5 is common for active workloads. Sustained values above 1.5 indicate significant waste. Values below 1.0 on instances larger than 100 MB suggest swap, which is catastrophic for latency.

This ratio is coarse. It includes process overhead such as code segments, shared libraries, and stack space, not just allocator fragmentation. For precision, Redis 5.0 and later expose allocator_frag_ratio (allocator_active / allocator_allocated), which isolates true jemalloc external fragmentation. Redis does not document a threshold ratio: an elevated allocator_frag_ratio with substantial allocator_frag_bytes indicates real external fragmentation, while a high ratio with only a few megabytes of fragmentation is not an issue.

The ratio is also unreliable after peak memory events. The allocator holds freed pages for reuse rather than releasing them to the OS. If Redis briefly filled memory with a bulk import and then deleted the keys, used_memory drops but RSS remains at the peak. This produces an artificially high ratio that may not reflect active fragmentation. In this scenario, mem_fragmentation_bytes (the absolute difference between RSS and used_memory) is often more actionable than the ratio itself.

flowchart TD
    A[mem_fragmentation_ratio above 1.5] --> B{used_memory below 50MB?}
    B -->|Yes| C[Noise: ignore]
    B -->|No| D{allocator_frag_ratio elevated with substantial allocator_frag_bytes?}
    D -->|Yes| E[True jemalloc fragmentation]
    D -->|No| F[RSS padding or process overhead]
    E --> G{active_defrag_running?}
    G -->|Yes| H[Check hits and misses ratio]
    G -->|No| I[Enable activedefrag or run MEMORY PURGE]
    F --> J[Check used_memory_peak vs used_memory]
    H --> K{Hits high?}
    K -->|Yes| L[Defrag working: wait or tune CPU]
    K -->|No| M[Workload skips large fields or defrag ineffective]

Common causes

CauseWhat it looks likeFirst thing to check
Post-peak deallocationRatio jumps after bulk deletion or eviction; used_memory drops sharply while RSS stays flatused_memory_peak against current used_memory
Heavy key churn with variable-size valuesRatio climbs steadily under write load as jemalloc arenas fragmentallocator_frag_ratio in INFO memory
Active defrag disabled or ineffectiveSustained high ratio on Redis 4.0+ with heavy mutation; defrag metrics show misses dominating hitsactive_defrag_hits vs active_defrag_misses
Large hash or sorted set fields skipping defragactive_defrag_running is positive but ratio does not decreaseactive_defrag_key_misses relative to hits in INFO stats (Redis 4.0+)
Tiny instance noiseRatio of 2.0 to 10.0 on instances with less than 50 MB of dataAbsolute used_memory value

Quick checks

Run these read-only commands to characterize the situation before making changes.

# Check top-level fragmentation and memory totals
redis-cli INFO memory | grep -E "used_memory:|used_memory_rss:|mem_fragmentation_ratio:|used_memory_peak:"

# Check allocator-level fragmentation for precision (Redis 5.0+)
redis-cli INFO memory | grep -E "allocator_frag_ratio:|allocator_rss_ratio:"

# Check active defrag status and effectiveness
redis-cli INFO memory | grep active_defrag_running
redis-cli INFO stats | grep -E "active_defrag_hits|active_defrag_misses"
redis-cli CONFIG GET activedefrag

# Run built-in diagnostics (Redis 4.0+)
redis-cli MEMORY DOCTOR

# Check for THP interference
cat /sys/kernel/mm/transparent_hugepage/enabled

How to diagnose it

  1. Filter out noise. If used_memory is below 50 MB, ignore the ratio.
  2. Check for post-peak artifact. Compare used_memory_peak to current used_memory. If the peak is many times larger than the current value, the high ratio is likely residual RSS from prior bulk allocations.
  3. Isolate true allocator fragmentation. On Redis 5.0+, inspect allocator_frag_ratio and allocator_frag_bytes. If the ratio is elevated and the absolute fragmentation is substantial, you have genuine jemalloc external fragmentation. If the ratio is low but mem_fragmentation_ratio is high, the gap is process overhead or RSS padding.
  4. Assess active defrag state. If activedefrag is disabled and you are on Redis 4.0 or later, the instance is not attempting to compact live objects. If it is enabled but active_defrag_misses is high relative to active_defrag_hits, defrag is working hard without reducing fragmentation. This can happen when large hash or sorted set fields exceed active-defrag-max-scan-fields (default 1000) and are skipped per scan cycle.
  5. Check for THP interference. If Transparent Huge Pages are not set to never, jemalloc’s page management is impaired, which can amplify fragmentation and worsen fork latency. The enabled file should read [never].
  6. Correlate with persistence events. used_memory_rss spikes temporarily during RDB or AOF rewrite because of copy-on-write. If the ratio is elevated only during rdb_bgsave_in_progress or aof_rewrite_in_progress, the condition is transient.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
mem_fragmentation_ratioTop-level waste indicator; OOM killer uses RSSSustained > 1.5 on instances > 50 MB
allocator_frag_ratioTrue jemalloc external fragmentation, excluding process overheadElevated with substantial allocator_frag_bytes
used_memory_peak vs used_memoryIdentifies artificial inflation from prior bulk allocationsPeak is 2x or more above current
active_defrag_runningIndicates whether the defragmenter is activeNon-zero while misses exceed hits
active_defrag_hits / (hits + misses)Measures whether defrag is successfully moving objects< 0.5 while running
used_memory_rssPhysical memory footprint; determines OOM proximityApproaching host or cgroup limit

Fixes

Post-peak RSS retention: run MEMORY PURGE

If the fragmentation is residual from a prior peak, MEMORY PURGE asks jemalloc to purge dirty pages so they can be reclaimed. This is a jemalloc-specific operation; it is a NOOP when using libc or tcmalloc. It reduces used_memory_rss without changing used_memory. On large heaps this command can be slow. Run it during a low-traffic window.

# Ask jemalloc to release dirty pages to the OS
redis-cli MEMORY PURGE

Sustained fragmentation: enable active defrag

For Redis 4.0 and later, enabling active defragmentation moves live objects to fresh memory and releases fragmented pages. This consumes CPU and can add latency if misconfigured. Enable it live to test:

redis-cli CONFIG SET activedefrag yes

The default thresholds are:

  • active-defrag-ignore-bytes 100mb
  • active-defrag-threshold-lower 10
  • active-defrag-threshold-upper 100
  • active-defrag-cycle-min 1
  • active-defrag-cycle-max 25
  • active-defrag-max-scan-fields 1000

Do not lower active-defrag-ignore-bytes without reason. The threshold exists to prevent the CPU cost of defrag on small absolute fragmentation. If mem_fragmentation_bytes is below 100 MB, defrag will not trigger even if the percentage threshold is met.

If defrag is enabled but the ratio does not drop, check whether your workload uses large hash or sorted set fields. Objects with fields above the active-defrag-max-scan-fields threshold are skipped during each cycle, which limits effectiveness on those key types. You can raise the scan limit, but doing so increases the CPU cost per cycle.

Version-specific active defrag bugs

Before applying active defrag as a long-term fix, check your Redis version. On Redis 7.2, a known bug can cause RSS to grow until the host runs out of memory even when active defrag is enabled (redis/redis issue #13612, reported on 7.2.5). It is fixed in Redis 7.4 (PR #13058). If you observe this behavior, upgrade to Redis 7.4 or later; a restart is only a temporary mitigation. On Redis 8.0, enabling active defrag can make cron-based timers run twice as fast (redis/redis PR #14081). The fix shipped in Redis 8.2.2. Upgrade to 8.2.2 or later if you use active defrag.

Disruptive fallback: restart

Restarting Redis resets RSS and eliminates fragmentation immediately. This is effective but causes downtime, cache warmup, and replication delay if the instance is a primary. Use it only when MEMORY PURGE and active defrag have failed, or when you hit version-specific bugs such as unbounded RSS growth despite active defrag. Plan the restart during a maintenance window.

System-level: disable Transparent Huge Pages

If THP is enabled, disable it. The following commands take effect immediately but do not survive reboot:

echo never | sudo tee /sys/kernel/mm/transparent_hugepage/enabled
echo never | sudo tee /sys/kernel/mm/transparent_hugepage/defrag

Persist the change in your system configuration (for example, sysctl or grub) if required.

Prevention

  • Monitor allocator_frag_ratio on Redis 4.0+ alongside mem_fragmentation_ratio to catch true fragmentation early. On large instances, track mem_fragmentation_bytes for an absolute view of wasted memory.
  • Review MEMORY MALLOC-STATS periodically to understand arena-level fragmentation. Sustained growth in dirty or muzzy pages indicates the allocator is struggling to reuse memory efficiently.
  • Size memory limits with fragmentation headroom. Persistent instances should keep used_memory below roughly 50% of physical RAM or maxmemory, whichever is tighter, to leave space for RSS overhead and COW during fork.
  • Avoid mass deletion patterns that leave jemalloc arenas sparse. When possible, use expiration with jitter rather than bulk deletes.
  • Evaluate active defrag effectiveness through active_defrag_hits and active_defrag_misses rather than enabling it and forgetting it.

How Netdata helps

  • Netdata collects mem_fragmentation_ratio, used_memory, and used_memory_rss natively, so you can correlate RSS growth with logical memory changes.
  • On Redis 4.0+, Netdata also surfaces allocator_frag_ratio, helping you distinguish allocator waste from process overhead.
  • Netdata’s alert templates filter out tiny instances, suppressing noise on instances below 50 MB.
  • You can correlate active_defrag_running with CPU utilization and command latency to spot when defrag itself is becoming a performance cost.
  • RSS and used_memory are plotted on the same charts, exposing post-peak deallocation patterns.
The Netdata solution

Redis monitoring with Netdata

Netdata monitors Redis with per-second metrics and ML anomaly detection. Track memory usage and fragmentation, fork/COW latency, replication backlog, evictions, and connection pressure to spot the failure modes in these runbooks early.