cache stats
a f
just1coder at yahoo.ca
Wed May 9 14:25:21 UTC 2007
Very handy, thank you.
----- Original Message ----
From: Matthew Glubb <matt at zgroupplc.com>
To: a f <just1coder at yahoo.ca>
Cc: Memcached list <memcached at lists.danga.com>
Sent: Wednesday, May 9, 2007 3:17:21 AM
Subject: Re: cache stats
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
telnet your.memcache.host 11211
type 'stats'
On 8 May 2007, at 22:03, a f wrote:
> 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
m a t t h e w g l u b b
________________________________________________________________________
Z Group PLC
Tel: +44 (0) 8700 111 173
Fax: +44 (0) 8707 051 393
Txt: +44 (0) 7800 140 877
Web: <http://www.zgroupplc.com/>
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they are
addressed. The opinions expressed in this mail are those of the author
and do not necessarily represent the views of the company. If you have
received this email in error please notify <service at zgroupplc.com>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
iD8DBQFGQXWFyI6MkdKPngkRAgNtAKCEeihBB91YdovG1tf2lnwdqFdQQgCfeciU
DR5LNvCSa+WiL8hycq6XZaM=
=gdvc
-----END PGP SIGNATURE-----
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.danga.com/pipermail/memcached/attachments/20070509/0b4bcc1f/attachment.htm
More information about the memcached
mailing list