使用 telnet 连接 memcached,发送统计命令:stats。
shell>telnet 192.168.228.3 9999
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 运行时间,单位:秒