Memcached stats sizes 命令
stats sizes 统计各尺寸区间的对象数量(用于调优)。
Key Pointsstats sizes 输出尺寸分布直方图,帮助判断 value 是否过大或过于离散。
用法
Shell
stats sizesOutput
STAT 96 5
STAT 120 3
STAT 240 1stats sizes can be slow on big instances (scans all items) — don't poll it. Use it for capacity planning: see value-size distribution to tune slabs or split large objects.用法
Shell
stats sizesOutput
STAT 96 5
STAT 120 3
STAT 240 1stats sizes 在大实例上可能很慢(要遍历所有 item),别高频调用。它主要用于容量规划:看 value 尺寸分布,决定 slab 调优或拆分大对象。