cache stats

a f just1coder at
Tue May 8 21:03:00 UTC 2007

Ah, ok thank you. That worked.. I thought there was a tool in the memcached folder that could do the same without touching the API ... or bothering the developer :)

----- Original Message ----
From: Jehiah Czebotar <jehiah at>
To: a f <just1coder at>
Cc: memcached at
Sent: Tuesday, May 8, 2007 4:56:10 PM
Subject: Re: cache stats

On 5/8/07, a f <just1coder at> wrote:
> Are there a few commands that can be issued to view the stats (cache hits,
> misses, etc) of particular memcached nodes?

You will need to look at the documentation for your client library as
the exact usage is different in each scenario

here is an example in python

>>> import memcache
>>> m = memcache.Client([''])
>>> m.get_stats()
[(' (1)', {'total_items': '1064', 'bytes_written':
'2579267', 'uptime': '2345949', 'bytes': '26662', 'cmd_get': '32398',
'curr_items': '153', 'pid': '6308', 'curr_connections': '4',
'connection_structures': '5', 'limit_maxbytes': '10485760', 'version':
'1.2.1', 'rusage_user': '0.350000', 'total_connections': '5',
'cmd_set': '1064', 'time': '1178657627', 'get_misses': '804',
'bytes_read': '1010270', 'rusage_system': '0.320000', 'pointer_size':
'32', 'get_hits': '31594'})]


      Get news delivered with the All new Yahoo! Mail.  Enjoy RSS feeds right on your Mail page. Start today at
-------------- next part --------------
An HTML attachment was scrubbed...

More information about the memcached mailing list