Home > Database > Mysql Tutorial > body text

memkeys实时查看memcached key使用情况

不言
Release: 2018-05-17 11:35:01
Original
1461 people have browsed it

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

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.69
    # ./configure
    # make && make install
    Copy after login

    安装其它依赖:

    # yum install libpcap-devel pcre-devel ncurses-devel
    Copy after login

    安装memkeys:

    # git clone https://github.com/tumblr/memkeys.git
    # cd memkeys
    # ./autogen.sh
    # ./configure
    # make && make install
    Copy after login
  • 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.
    Copy after login

    例子1:

    # memkeys -i eth0 -l /tmp/memkeys.log
    Copy after login

    例子2:

    # memkeys -i eth0 -d 10.0 -l /tmp/memkeys.log
    Copy after login
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!