MemCahced is a high performance distributed memory object caching system. It helps in speeding of dynamic web application by alleviating database load.
During performance testing of application which uses MemCached as it's cache architecture, it becomes necessary to monitor health of MemCached. Although Memcached is fast enough to retrieve required data. For every thing it can, MemCached commands provide algorithmic complexity of O(1). Each commands takes roughly same amount of time every time.
Memcached expose its statistics and we can get those statistics using Stats commands. To execute stats command just telnet Memcahed port :
telnet Server Port
By default Memcahced use 11211 port.
Once you are connected to telnet session , type Stats and press enter , this will display MemCached performance metrics.
Below is the list of key performance metrics that we should monitor in order to collect required performance data:
During performance testing of application which uses MemCached as it's cache architecture, it becomes necessary to monitor health of MemCached. Although Memcached is fast enough to retrieve required data. For every thing it can, MemCached commands provide algorithmic complexity of O(1). Each commands takes roughly same amount of time every time.
Memcached expose its statistics and we can get those statistics using Stats commands. To execute stats command just telnet Memcahed port :
telnet
By default Memcahced use 11211 port.
Once you are connected to telnet session , type Stats and press enter , this will display MemCached performance metrics.
Below is the list of key performance metrics that we should monitor in order to collect required performance data:
- bytes : Number of bytes currently used for caching items.
- limit_maxbytes : Maximum configured cache size.
- curr_connections : Number of open connections to this memcached server.
- curr_items : Number of items currently in server's cache.
- evictions : Number of objects removed from cache to free up memory for new items.
- cmd_get : Number of get commands received since server start up not counting whether they are successful or not.
- get_hits : Number of successful get operations since startup. Divide this by cmd_get to calculate cache hit rate.
- get_misses : Number of failed get requests because key was not there in cache.
- listen_disabled_num : Number of denied connections attempts because memcached reached it's max connection limit.
- threads : Number of threads used by memcached server process.
No comments:
Post a Comment