Memcache Monitoring Tools--Mctop
Introduced
Mctop is similar to Memcache-top, which is mainly used to monitor memcache traffic, including the number of key calls, object storage size, number of requests per second, and network bandwidth consumed.
Source code: Https://github.com/etsy/mctop
Installation
Cd/usr/localyum Install libpcap-devel ruby-devel rubygems gitgem sources--remove https://rubygems.org/gem sources-a htt Ps://ruby.taobao.org/gem sources-lgem install ruby-pcap-v ' 0.7.8 ' gem install Bundlegem install Rakegit clone https://git Hub.com/etsy/mctop.gitcd mctopbundle installrake installln-s/usr/local/mctop/bin/mctop/usr/bin/mctop
Use
View Help:
Mctop–h
Usage:mctop [Options]-i,--interface=nic network interface to sniff (required)--host=host network host to sniff on (Defau Lt All)-p,--port=port Network port to sniff on (default 11211)-D,--discard=thresh discard keys with Request/sec rate Bel ow thresh-r,--refresh=ms refresh the stats display every MS milliseconds-h,--help Show usage info
Mctop-i eth0-p 11211
The output resembles the following information:
Memcache Key calls ObjSize req/sec bw (kbps) KEY12 1 6 0.02 0.00key10 1 6 0.02 0.00username 1 0.02 0.00 Sort Mode:reqsec (DESC) keys:3 Packets (recv/dropped): 21/0 (0.00%) rt:0.719 (ms) Q:quit | C:sort by calls | S:sort by Size | R:sort by Req/sec | B:sort by Bandwidth | T:toggle sort order (ASC|DESC)
This article is from the SQL Server deep dives blog, so be sure to keep this source http://ultrasql.blog.51cto.com/9591438/1637615
Memcache monitoring Tool--mctop