Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Memcache Monitoring tool mctop

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

Memcache monitoring tool mctop, I believe that many inexperienced people do not know what to do about this, so this article summarizes the causes of the problem and solutions, through this article I hope you can solve this problem.

Memcache Monitoring tool-- mctop

Introduction

Like memcache-top, mctop is mainly used to monitor the traffic of Memcache, including the number of calls to key, the size of object storage, the number of requests per second, and the network bandwidth consumed.

Installation

Cd / usr/localyum install libpcap-devel ruby-devel rubygems gitgem sources-- remove https://rubygems.org/gem sources-a https://ruby.taobao.org/gem sources-lgem install ruby-pcap-v '0.7.8'gem install bundlegem install rakegit clone https://github.com/etsy/mctop.gitcd mctopbundle installrake installln-s / usr/local/mctop/bin/mctop / usr/bin/mctop

Use

View help:

Mctop-hUsage: mctop [options]-I,-- interface=NIC Network interface to sniff (required)-- host=HOST Network host to sniff on (default all)-p,-- port=PORT Network port to sniff on (default 11211)-d,-- discard=THRESH Discard keys with request/sec rate below THRESH-r,-- refresh=MS Refresh the stats display every MS milliseconds-h,-- help Show usage infomctop-I eth0-p 11211

The output is similar to the following:

Memcache key calls objsize req/sec bw (kbps) key12 1 60.02 0.00key10 1 60.02 0.00username 1 12 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) after reading the above, have you mastered the method of Memcache monitoring tool mctop? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report