cache stats
a f
just1coder at yahoo.ca
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 gmail.com>
To: a f <just1coder at yahoo.ca>
Cc: memcached at lists.danga.com
Sent: Tuesday, May 8, 2007 4:56:10 PM
Subject: Re: cache stats
On 5/8/07, a f <just1coder at yahoo.ca> 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(['127.0.0.1:11211'])
>>> m.get_stats()
[('127.0.0.1:11211 (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'})]
--
Jehiah
Get news delivered with the All new Yahoo! Mail. Enjoy RSS feeds right on your Mail page. Start today at http://mrd.mail.yahoo.com/try_beta?.intl=ca
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.danga.com/pipermail/memcached/attachments/20070508/1b51307c/attachment.htm
More information about the memcached
mailing list