memcache监控mctop安装
2014-10-24 本文已影响242人
kevinp
安装需要的环境
yum install libpcap-devel ruby-devel rubygems git
gem install ruby-pcap -v '0.7.8'
gem install bundle
gem install rake
下载源码安装
git clone https://github.com/etsy/mctop
cd mctop
bundle install
rake install
安装完毕
用法
Usage: mctop [options]
-i, --interface=NIC Network interface to sniff (required)
-p, --port=PORT Network port to sniff on (default 11211)
-d, --discard=THRESH Discard keys with request/sec rate below THRESH
-r, --refresh=MS Refresh the stats display every MS milliseconds
-h, --help Show usage info
通过ifconfig查看网卡,我的是eth0。可以通过下面的命令监控
./bin/mctop -i eth0 -p 10021