Do you want a top-like command to show the status of Memcache so that the memcache can be visually analyzed, and that MEMCAHCE top will satisfy your requirements?
The project address for Memcache-top is as follows: http://code.google.com/p/memcache-top/
After downloading only a file, you can open it and memcached cluster configuration, multiple nodes separated by commas, so that you can see all the memcache state of the cluster at once.
# List of Servers/ports to query.
@default_instances = (
' 127.0.0.1:11211 ',
);
Before running, make sure that the Memcache-top script has executable permissions and then use./execute.
Some of the more important parameters of Memcache-top include:
–commands: Shows the number of calls to the Gets/sets command
–sleep: Refresh interval, default is 3 seconds
–lifetime: Displays the cumulative statistic since memcached started, which is turned off by default, showing only the instantaneous rate.
MEMCAHCE (MC) series (v) Monitor memcache cluster status using Memcache-top