Redis慢查询
redis-cli --bigkeys # Scanning the entire keyspace to find biggest keys as well as # average sizes per key type. You can use -i 0.1 to sleep 0.1 sec # per 100 SCAN commands (not usually needed). [00.00%] Biggest string found so far 'key:__rand_int__' with 3 bytes [00.00%] Biggest hash found so far 'website' with 2 fields [00.00%] Biggest string found so far 'counter:__rand_int__' with 5 bytes -------- summary ------- Sampled 5 keys in the keyspace! Total key length in bytes is 51 (avg len 10.20) Biggest string found 'counter:__rand_int__' has 5 bytes Biggest hash found 'website' has 2 fields 4 strings with 12 bytes (80.00% of keys, avg size 3.00) 0 lists with 0 items (00.00% of keys, avg size 0.00) 0 sets with 0 members (00.00% of keys, avg size 0.00) 1 hashs with 2 fields (20.00% of keys, avg size 2.00) 0 zsets with 0 members (00.00% of keys, avg size 0.00)
Last updated