Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1079715
  • 博文数量: 321
  • 博客积分: 7872
  • 博客等级: 少将
  • 技术积分: 2120
  • 用 户 组: 普通用户
  • 注册时间: 2007-05-16 09:06
文章分类

全部博文(321)

文章存档

2017年(1)

2016年(1)

2015年(12)

2014年(17)

2013年(78)

2012年(15)

2011年(17)

2010年(67)

2009年(102)

2008年(11)

分类: LINUX

2013-07-11 15:13:53

  • memkeys是tumblr开源的类似top的工具,可用于实时查看memcached的key使用情况.
    memkeys安装

    安装autoconf(要求版本2.68以上):

    # wget -c 
    # 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 
    # 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
    
Posted in , .
阅读(1057) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~