↑ ↓ select, Enter open, Esc close

Find the biggest keys in Redis

Adjust the values, the command updates live
user@server
redis-cli -n 0 --bigkeys

Scans all keys in the database and reports the biggest key for each data type, followed by a summary with count and average size. With WordPress, huge alloptions entries or plugin transients often stand out here. Since SCAN is used internally, the run does not block the server.

Note: For strings the length is given in bytes, for lists, hashes and sets the number of elements.

Also searched as

  • what is using memory in redis
  • large entries in redis cache
  • redis bigkeys

Related one-liners

All in Redis and Memcached

Read first, then run.

The commands on myline.de act directly on servers, files and databases. A wrong path or placeholder can delete data irreversibly or make a server unreachable.

  • All commands are provided without warranty and are not tested on every system.
  • Understand what a command does before running it, and check every placeholder.
  • Make a backup first and, if possible, try it on a test system.
  • You run commands at your own risk. Liability for damages is excluded to the extent permitted by law.