监控memcached

监控memcached的运行情况还是很有必要的,当前尝试了如下几种方式:

1。telnet方式

通过运行命令行telnet 127.0.0.1 11211,然后运行stats,得到如下内容:

stats

STATpid2220

STATuptime272669

STATtime1249292478

STATversion1.2.1

STATpointer_size32

STATcurr_items4

STATtotal_items4

STATbytes986

STATcurr_connections21

STATtotal_connections51

STATconnection_structures27

STATcmd_get13

STATcmd_set4

STATget_hits9

STATget_misses4

STATbytes_read1152

STATbytes_written2112

STATlimit_maxbytes67108864

END

2。MemCacheD Manager, by Nick Pirocanac

安装完毕后,add server,输入ip即可,显示界面如下:

监控memcached

3。其他方式

HowToMonitor  
Monitoring memcached

Or,just do a simple connect to the port where memcached is listening. Youcan run a simple command like 'version' or 'stats' to see if memcachedis listening.

相关推荐