ponh 发表于 2013-12-19 09:52:11

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.

mqzlp 发表于 2013-12-19 17:29:01

在幸福来临之时,你要做好有个悲痛的结局

dsfsfs 发表于 2013-12-19 17:59:40

从长远来看,没有人会失恋。我们只不过是在走向最后的恋情途中

永夜海 发表于 2013-12-20 01:34:45

亲爱的:想你的心要怎么让你知道。

ybaidukuai 发表于 2013-12-20 03:17:25

花开的风雨过后,阳光依旧

hb120973135 发表于 2013-12-20 04:08:36

◆◇ヽ 怜香惜玉';你怜哪的香,?惜哪的玉,!?

孤独雪鹰 发表于 2013-12-20 06:13:20

讓未來到來,讓過去過去
页: [1]
查看完整版本: Memcache stats命令