安装上文《Memcache客户端库libmemcached介绍和部署》安装好后,进入到命令行工具目录/usr/local/libmemcached/bin/下面。
命令行工具中,memstat 可在命令行查看 memcached 服务器的情况,比如:get/set命令统计、get命中率、读写字节数、线程数等等。
1
|
[root@test01 bin]
# memstat --servers=192.168.11.51:11211
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
Listing 1 Server
Server: 192.168.11.51 (11211)
pid: 28783
uptime: 86
time: 1429845078
version: 1.4.22
pointer_size: 64
rusage_user: 0.999
rusage_system: 0.3999
curr_items: 3
total_items: 3
bytes: 213
curr_connections: 5
total_connections: 7
connection_structures: 6
cmd_get: 1
cmd_set: 3
get_hits: 0
get_misses: 1
evictions: 0
bytes_read: 213
bytes_written: 213
limit_maxbytes: 134217728
threads: 4
|
本文转自UltraSQL51CTO博客,原文链接:http://blog.51cto.com/ultrasql/1637883
,如需转载请自行联系原作者