how to get this memcached stats. I am using ubantu as a server.

On Mon, Jul 25, 2011 at 12:50 PM, Andrej van der Zee <
[email protected]> wrote:

> Thanks for your reply.
>
>
>>  Personally I prefer _all_ stats, not just a subset ;)
>>
>
> Yeah sorry....
>
> STAT pid 8486
> STAT uptime 576620
> STAT time 1311578356
> STAT version 1.2.2
> STAT pointer_size 64
> STAT rusage_user 27.690000
> STAT rusage_system 74.850000
> STAT curr_items 94035
> STAT total_items 154518
> STAT bytes 29637806
> STAT curr_connections 39
> STAT total_connections 3336
> STAT connection_structures 40
> STAT cmd_get 2606922
> STAT cmd_set 154518
> STAT get_hits 0
> STAT get_misses 2606922
> STAT evictions 0
> STAT bytes_read 193810905
> STAT bytes_written 16410707
> STAT limit_maxbytes 524288000
> STAT threads 1
> END
>
>
>>
>> What about just grabbing a few network packets to look at the traffic
>> you're sending to your memcached server and look from there? It would be a
>> lot easier for you to figure out if you knew what they used the memcached
>> cluster for ;) It could be that they don't store and fetch the same kinds of
>> objects ;)
>
>
> Problem is that I can only see up to 96 bytes per packet. Cannot see what
> it stores...
>
> I found some keys like this:
>
> @echo stats cachedump 7 10 | nc 127.0.0.1 11211
> ITEM 739DFCF822F93608BF74643DD1361DD9-z3 [217 b; 1311577664 s]
> ITEM 792FB2A9958BB9D1073B92DE2FD53A00-z3 [217 b; 1311577661 s]
> ITEM EBA8FFD29927962DE9141D35D0400263-z3 [217 b; 1311577660 s]
> ITEM 4FCFA8F546179C8D5BED87D34A15C582-z3 [217 b; 1311577655 s]
> ITEM 6DAD99BF57B6EB17E1D785B3CED5D6FC-z3 [217 b; 1311577655 s]
> ITEM B8F48F7CCFB0EADB63350EDB8A9C3665-z3 [217 b; 1311577654 s]
>
> But each time I do:
> @echo  get 739DFCF822F93608BF74643DD1361DD9-z3 | nc 127.0.0.1 11211
> END
>
> Then I get nothing back, just "END".
>
> Any idea what I am doing wrong?
>
> Cheers,
> Andrej
>
>
>
>


-- 
 Best wishes,
Chetan Gadgilwar

Reply via email to