How to read stats using stats command
jehiah at gmail.com
Wed Jun 4 17:14:30 UTC 2008
The best answer is probably in the protocol documentation
rusage_user 32u:32u Accumulated user time for this process
rusage_system 32u:32u Accumulated system time for this process
curr_items 32u Current number of items stored by the server
total_items 32u Total number of items stored by this server
ever since it started
you can certainly tune your system based on those, but you probably
want to pay attention to your hit ratio (get_hits vs cmd_gets), that
is how many 'gets' were served from the cache, and how many didn't
find the data they were looking for. You also should pay attention to
evictions, which is the number of items pushed out of the cache to
make room for new items (even though that is normal, it may help tune
your system if it isn't what you expect).
with the stats provided you are getting a 96% hit ratio, and your
cache is only storing 12Mb of data, so it sounds like your system is
running just fine.
On Wed, Jun 4, 2008 at 1:08 PM, Harshad Chavan <harshadchavan at yahoo.com> wrote:
> Thanks for the quick reply Jehiah
> The current size of the memcached in bytes, difference between curr_items
> and total_items, what is rusage_user/system.
> Will I able to tune memcache from these statistics?
> - Harshad
> --- On Wed, 6/4/08, Jehiah Czebotar <jehiah at gmail.com> wrote:
> From: Jehiah Czebotar <jehiah at gmail.com>
> Subject: Re: How to read stats using stats command
> To: harshadchavan at yahoo.com
> Date: Wednesday, June 4, 2008, 10:03 AM
> is there a specific statistic that you have a question about?
> On Wed, Jun 4, 2008 at 1:01 PM, Harshad Chavan
> <harshadchavan at yahoo.com>
>> This is a very basic question. But I could not find it in the
>> section of memcached, nor could I find it on the web anywhere. I tried to
>> to archives, but could not find any search facility.
>> I just wanted to know, how to read the the result of stats command.
>> The output I get is -
>> STAT pid 26989
>> STAT uptime 338772
>> STAT time 1212598228
>> STAT version 1.2.2
>> STAT pointer_size 64
>> STAT rusage_user 4.303345
>> STAT rusage_system 13.534942
>> STAT curr_items 6383
>> STAT total_items 45787
>> STAT bytes 12780340
>> STAT curr_connections 2
>> STAT total_connections 25
>> STAT connection_structures 3
>> STAT cmd_get 405436
>> STAT cmd_set 45787
>> STAT get_hits 390376
>> STAT get_misses 15060
>> STAT evictions 0
> STAT bytes_read 58579379
>> STAT bytes_written 305919641
>> STAT limit_maxbytes 524288000
>> STAT threads 1
>> Can anybody please help?
More information about the memcached