Find biggest keys

Sample keyspace to find largest keys per type; note: estimates, runs SCAN not blocking

redis-cli --bigkeys

tool
redis32 commands
tags
redisperformancetroubleshootingdebug

More redis commands

  • redis-cli --memkeys

    Sample keys ranked by actual memory usage, not element count; finds RAM hogs

  • redis-cli MEMORY USAGE <name> SAMPLES 0

    Bytes used by a single key incl overhead; SAMPLES 0 = exact for collections

  • redis-cli SLOWLOG GET 10; redis-cli SLOWLOG RESET

    List 10 slowest commands with args and duration, then clear the log

  • redis-cli LATENCY DOCTOR

    Human-readable latency analysis with likely causes; pair with LATENCY HISTORY <event>

  • redis-cli CLIENT LIST | tr ' ' '\n' | grep -E 'addr=|age=|idle=' | paste - - - | sort -t= -k3 -rn | head

    Find long-lived/idle connections leaking sockets; sort by age then idle

all 32 redis commands