memcache stats

241 views
Skip to first unread message

TK

unread,
Sep 5, 2008, 10:35:52 AM9/5/08
to memcached
Hi! All

I am new to memcache. I wanted to find out what are the statistics
which we care about. I just came across the following:
#tackable-image:11211 Field Value
bytes 17962932
bytes_read 17450985
bytes_written 90519
cmd_get 0
cmd_set 10047
connection_structures 3
curr_connections 2
curr_items 10047
evictions 0
get_hits 0
get_misses 0
limit_maxbytes 67108864
pid 25215
pointer_size 64
rusage_system 0.627904
rusage_user 0.172973
threads 1
time 1220625172
total_connections 30
total_items 10047
uptime 57071
version 1.2.6

And

# Item_Size Max_age 1MB_pages Count Full?
9 696 B 56043 s 7 10000 no
32 117.5 kB 57031 s 1 1 no
36 286.9 kB 56991 s 10 30 yes
37 358.6 kB 56950 s 5 10 yes
38 448.2 kB 57052 s 3 6 yes

Are there any other statistics which we can look at? Also what is the
1MB_pages? And if someone can explain in detail the -m option? By
default the memory allocated is 64MB, is it for each slab or for the
whole memcache?

If these questions are answered some other place, please point me the
location.

thanks in advance.

TK

Steve Yen

unread,
Sep 5, 2008, 11:48:53 AM9/5/08
to memc...@googlegroups.com

The stats commands include...
stats
stats slabs
stats items
// dumps out a list of objects of each size, with granularity of 32 bytes
stats sizes
// turn on/off details stats collections, at some performance cost
stats detail [on|off|dump]
stats cachedump [id] [limit]

The -m option is max amount of memory for the whole of memcached.

steve

TK

unread,
Sep 5, 2008, 12:50:41 PM9/5/08
to memcached
thanks steve,

I am not able to get anything for:
1. stats items
2. stats sizes

even though I have bunch of items stored in the memcache.

Also for the stats cachedump what is the limit parameter?

TK

On Sep 5, 8:48 am, "Steve Yen" <steve....@gmail.com> wrote:

Steve Yen

unread,
Sep 5, 2008, 2:29:48 PM9/5/08
to memc...@googlegroups.com
You're running an older memcached version. They've been there since
at least 1.2.5 and maybe earlier.

On Fri, Sep 5, 2008 at 9:50 AM, TK <indc...@gmail.com> wrote:
>
> thanks steve,
>
> I am not able to get anything for:
> 1. stats items
> 2. stats sizes
>
> even though I have bunch of items stored in the memcache.
>
> Also for the stats cachedump what is the limit parameter?

stats cachedump [id] [limit]

The id param is an integer slab id, starting at 0 for the smallest slab.

The limit param is an integer number of max items in that slab to output.

best,
steve

Steve Yen

unread,
Sep 5, 2008, 2:32:46 PM9/5/08
to memc...@googlegroups.com
On Fri, Sep 5, 2008 at 11:29 AM, Steve Yen <stev...@gmail.com> wrote:
> You're running an older memcached version. They've been there since
> at least 1.2.5 and maybe earlier.
>
> On Fri, Sep 5, 2008 at 9:50 AM, TK <indc...@gmail.com> wrote:
>>
>> thanks steve,
>>
>> I am not able to get anything for:
>> 1. stats items
>> 2. stats sizes
>>
>> even though I have bunch of items stored in the memcache.
>>
>> Also for the stats cachedump what is the limit parameter?
>
> stats cachedump [id] [limit]
>
> The id param is an integer slab id, starting at 0 for the smallest slab.
>
> The limit param is an integer number of max items in that slab to output.

Also, the limit can be just 0 to output all items in that slab.

Should probably throw stuff like this onto the new wiki.

TK

unread,
Sep 5, 2008, 6:22:53 PM9/5/08
to memcached
thanks, steve.

Was looking at the help section of the memcached server and there is a
-u option
for managed instance. Can somebody explain when and where will someone
use
this option.

Thanks in advance.

TK

On Sep 5, 11:32 am, "Steve Yen" <steve....@gmail.com> wrote:
> On Fri, Sep 5, 2008 at 11:29 AM, Steve Yen <steve....@gmail.com> wrote:
> > You're running an older memcached version.  They've been there since
> > at least 1.2.5 and maybe earlier.
>

dormando

unread,
Sep 5, 2008, 6:40:19 PM9/5/08
to memcached
The -u option is for specifying the user to drop privileges to?

If you see mentions of "managed instances" - that's unfinished code, which
we should silence. You can safely ignore that.

-Dormando

Reply all
Reply to author
Forward
0 new messages