Memcache stats命令

telnet 127.0.0.1 11211

之后,可以用的命令有:

(1)stats

(2)

stats items

Returns some information, broken down by slab, about items stored in memcached.

 (3)

stats slabs

Returns more information, broken down by slab, about items stored in memcached. More centered to performance of a slab rather than counts of particular items.

 (4)

stats sizes

A special command that shows you how items would be distributed if slabs were broken into 32byte buckets instead of your current number of slabs. Useful for determining how efficient your slab sizing is.

WARNING this is a development command. As of 1.4 it is still the only command which will lock your memcached instance for some time. If you have many millions of stored items, it can become unresponsive for several minutes. Run this at your own risk. It is roadmapped to either make this feature optional or at least speed it up.

(5)

flush_all

Invalidate all existing cache items. Optionally takes a parameter, which means to invalidate all items after N seconds have passed.

This command does not pause the server, as it returns immediately. It does not free up or flush memory at all, it just causes all items to expire.

 

posted @ 2013-12-18 12:44  画家与我  阅读(332)  评论(0编辑  收藏  举报