当前位置: 首页 > 工具软件 > memcache-top > 使用案例 >

安装memcache-top 监控

邹宏峻
2023-12-01
1.网址:http://code.google.com/p/memcache-top/ 下载程序,放到linux下
2.如果执行perl memcache-top-v0.6 --instances=127.0.0.1:11212,127.0.0.1:11211 出现如下错误:
Can't locate Time/HiRes.pm in @INC
Can't locate ExtUtils/MakeMaker.pm in @INC (解决办法:http://hi.baidu.com/liu731/item/a5ac223e9538e9d06d15e9b5) OK
Can't locate CPAN.pm in @INC (解决办法:http://bbs.chinaunix.net/thread-1290287-1-1.html) OK

需要安装的软件:Time-HiRes-1.9725 Test-Harness-3.26 Test-Simple-0.98 CPAN-1.9402
安装方法:解压后,进入目录执行如下命令:
perl Makefile.PL
make
make test
make install

http://search.cpan.org/ 查找下载所需软件


perl /root/soft/memcache-top-v0.6 --instances=218.245.5.77 --port 20130

执行后,显示:

INSTANCE                USAGE   HIT %   CONN    TIME    EVICT/s READ/s  WRITE/s
218.245.5.77:11211 is DOWN.

AVERAGE: 0.0% 0.0% 0.0ms 0.0 0 0

TOTAL: 0B/ 0B 0.0ms 0.0 0 0
(ctrl-c to quit.)

参考文档:http://www.linuxidc.com/Linux/2011-10/45868.htm

http://sdu-wizard.iteye.com/blog/1538398


telnet 218.245.5.77 20130

/usr/local/bin/memcached -d -m 10048 -u root -l 218.245.5.77 -p 20130 -c 10024 -P /tmp/memcached.pid


500字节 一个记录 500*4000000/1024/1024

初始化了100万,占用了0.5G内存
500*1000000/1024/1024=476M


mem超时问题:
http://www.iteye.com/problems/79744
http://weiboxie.iteye.com/blog/1835858
 类似资料: