使用telnet连接memcached,发送统计命令:stats。shell>telnet 192.168.51.110 11211
Trying 192.168.228.3...
Connected to 192.168.228.3.
Escape character is ‘^]‘.
stats
STAT pid 6995
STAT uptime 87233
STAT time 1222314531
STAT version 1.2.6
STAT pointer_size 32
STAT rusage_user 0.081987
STAT rusage_system 0.246962
STAT curr_items 1000
STAT total_items 3932
STAT bytes 65000
STAT curr_connections 2
STAT total_connections 452
STAT connection_structures 129
STAT cmd_get 7980
STAT cmd_set 3990
STAT get_hits 4975
STAT get_misses 3005
STAT evictions 0
STAT bytes_read 291486
STAT bytes_written 235479
STAT limit_maxbytes 2147483648
STAT threads 1
END
分析统计信息
--------------------------------------------------------------------------------
名称
描述
pid //Memcached进程ID
uptime //Memcached运行时间,单位:秒
time //Memcached当前的UNIX时间
version //Memcached的版本号
rusage_user //该进程累计的用户时间,单位:秒
rusage_system //该进程累计的系统时间,单位:秒
curr_items //Memcached当前存储的内容数量
total_items //Memcached启动以来存储过的内容总数
bytes //Memcached当前存储内容所占用的字节数
curr_connections //当前连接数量
total_connections //Memcached运行以来接受的连接总数
connection_structures //Memcached分配的连接结构的数量
cmd_get //查询请求总数
cmd_set //存储(添加/更新)请求总数
get_hits //查询成功获取数据的总次数
get_misses //查询成功未获取到数据的总次数
bytes_read //Memcached从网络读取到的总字节数
bytes_written //Memcached向网络发送的总字节数
limit_maxbytes //Memcached在存储时被允许使用的字节总数