Find the biggest keys
Sample the keyspace to find the largest key of each type, gives estimates and uses SCAN, so it does not block
redis-cli --bigkeys
- tool
- redis32 commands
More redis commands
-
redis-cli --memkeysSample keys and rank them by real memory usage, not element count, to find what eats your RAM
-
redis-cli MEMORY USAGE <name> SAMPLES 0Bytes used by one key, including overhead; SAMPLES 0 gives an exact number for collections
-
redis-cli SLOWLOG GET 10; redis-cli SLOWLOG RESETShow the last 10 slow commands with arguments and duration, then clear the log
-
redis-cli LATENCY DOCTORReadable latency report with likely causes, use it together with LATENCY HISTORY <event>
-
redis-cli CLIENT LIST | tr ' ' '\n' | grep -E 'addr=|age=|idle=' | paste - - - | sort -t= -k3 -rn | headFind long-lived or idle connections that leak sockets, sorted by age