Top Python Libraries

Top Python Libraries

Redis Memory Hunt: From Black Box to Full Visibility

Redis memory spike? 90%→crash. 3-step check, 4 fixes, 1 script. Keep usage <70% and sleep well.

Meng Li's avatar
Meng Li
Dec 08, 2025
∙ Paid

“Top Python Libraries” Publication 400 Subscriptions 20% Discount Offer Link.


When Redis memory usage soars above 90%, your application may face response delays, command timeouts, or even service crashes. Today, we’ll dive deep into Redis memory’s “black hole” and master a complete memory troubleshooting methodology.

Phase 1: Quick Overview of Memory Consumption

1. Three Essential Diagnostic Commands

# Check Redis overall memory status

redis-cli info memory

used_memory: Memory allocated by Redis allocator
used_memory_rss: Memory usage as seen by the operating system
mem_fragmentation_ratio: Memory fragmentation ratio (alert if > 1.5)
used_memory_dataset: Memory occupied by actual data

# View memory distribution by data type

redis-cli --bigkeys

# Real-time memory monitoring

redis-cli --stat
User's avatar

Continue reading this post for free, courtesy of Meng Li.

Or purchase a paid subscription.
© 2026 Meng Li · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture