Memkeys Real-Time View memcachedkey usage

Source: Internet
Author: User
Memkeysmemkeys is a tumblr open-source tool similar to top, which can be used to view the key Usage of memcached in real time. Install autoconf on memkeys (required version 2.68 or later): slave # cdautoconf-2.6

Memkeys is a tumblr open-source tool similar to top. It can be used to view the key Usage of memcached in real time. memkeys install and install autoconf (required version 2.68 or later): # wget-c http://ftp.gnu.org/gnu/autoconf/autoconf-latest.tar.gz# tar zxvf autoconf-latest.tar.gz # cd autoconf-2.6

Memkeysmemkeys is a tumblr open-source tool similar to top. It can be used to view the key Usage of memcached in real time.
  • Install and install autoconf on memkeys (version 2.68 or later is required ):
    # 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
    Install other Dependencies:
    # yum install libpcap-devel pcre-devel ncurses-devel
    Install memkeys:
    # git clone https://github.com/tumblr/memkeys.git# cd memkeys# ./autogen.sh# ./configure# make && make install
  • Use memkeys
    # memkeys -hUsage: 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.
    Example 1:
    # memkeys -i eth0 -l /tmp/memkeys.log
    Example 2:
    # memkeys -i eth0 -d 10.0 -l /tmp/memkeys.log

Original article address: memkeys views memcached key Usage in real time. Thank you for sharing it with me.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.