Memcache监控工具 -- memstat
安装上文《Memcache客户端库libmemcached介绍和部署》安装好后,进入到命令行工具目录/usr/local/libmemcached/bin/下面。
命令行工具中,memstat 可在命令行查看 memcached 服务器的情况,比如:get/set命令统计、get命中率、读写字节数、线程数等等。
[[email protected] bin]# memstat --servers=192.168.11.51:11211
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
时间: 2024-11-06 03:33:48