诺亚方舟

沉淀

终端通过stats命令查看memcache服务器当前使用状态

终端下通过telnet连接上memcache服务器后,键入stats可以查看memcache的使用状态

 

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<span style="font-size: large;">
stats
STAT pid 9872 						//进程号
STAT uptime 2763698					//memcache服务从启动到当前所经过的时间,单位是秒
STAT time 1389692786				//memcache服务器所在主机当前系统的时间,单位是秒
STAT version 1.4.4					//版本
STAT pointer_size 64				//操作系统位数
STAT rusage_user 14.023868			
STAT rusage_system 31.594196
STAT curr_connections 8				//表示当前系统打开的连接数
STAT total_connections 649004		//表示从memcached服务启动到当前时间,系统打开过的连接的总数
STAT connection_structures 12
STAT cmd_get 50656					//累积获取数据的数量
STAT cmd_set 648944					//累积保存数据的数量
STAT cmd_flush 17
STAT get_hits 49673					//表示获取数据成功的次数
STAT get_misses 983					//表示获取数据失败的次数
STAT delete_misses 0
STAT delete_hits 0
STAT incr_misses 0
STAT incr_hits 0
STAT decr_misses 0
STAT decr_hits 0
STAT cas_misses 0
STAT cas_hits 0
STAT cas_badval 0
STAT auth_cmds 0
STAT auth_errors 0
STAT bytes_read 792249492			//memcached服务器从网络读取的总的字节数
STAT bytes_written 78219463			//memcached服务器发送到网络的总的字节数
STAT limit_maxbytes 67108864		//memcached服务缓存允许使用的最大字节数
STAT accepting_conns 1
STAT listen_disabled_num 0
STAT threads 4
STAT conn_yields 0
STAT bytes 21094773					//表示系统存储缓存对象所使用的存储空间,单位为字节。
STAT curr_items 15384				//当前保存的缓存对象个数
STAT total_items 648941				//memcache启动到当前保存过的对象
STAT evictions 0					//为了给新的数据项目释放空间,从缓存移除的缓存对象的数目。比如超过缓存大小时根据LRU算法移除的对象,以及过期的对象。
END
</span>

发表评论

电子邮件地址不会被公开。 必填项已用*标注

您可以使用这些HTML标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>