memkeys memkeys是tumblr开源的类似top的工具,可用于实时查看memcached的key使用情况. memkeys安装 安装autoconf(要求版本2.68以上): # wget -c http://ftp.gnu.org/gnu/autoconf/autoconf-latest.tar.gz# tar zxvf autoconf-latest.tar.gz# cd autoconf-2.6
memkeysmemkeys是tumblr开源的类似top的工具,可用于实时查看memcached的key使用情况.
memkeys安装安装autoconf(要求版本2.68以上):
# wget -c http://ftp.gnu.org/gnu/autoconf/autoconf-latest.tar.gz
# tar zxvf autoconf-latest.tar.gz
# cd autoconf-2.69
# ./configure
# make && make install
安装其它依赖:
# yum install libpcap-devel pcre-devel ncurses-devel
安装memkeys:
# git clone https://github.com/tumblr/memkeys.git
# cd memkeys
# ./autogen.sh
# ./configure
# make && make install
memkeys使用# memkeys -h
usage: memkeys -i nic [options]
-d, --discard=thresh discard keys where req/s rate is below thresh
-i, --interface=nic network interface to capture traffic on (required)
-p, --port=port network port to capture memcache traffic on (default 11211)
-r, --refresh=interval refresh the stats display every interval ms (default 500)
-l, --logfile=file output logs to file
-r, --report=report output data in report format (csv or curses, default curses)
-h, --help this help
-v, --verbose increase verbosity. may be used multiple times.
-v, --version show program info and exit.
例子1:
# memkeys -i eth0 -l /tmp/memkeys.log
例子2:
# memkeys -i eth0 -d 10.0 -l /tmp/memkeys.log