Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
List all objects in memcached
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  13 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
HE  
View profile  
 More options Jul 16 2008, 4:07 pm
From: HE <emilianohorc...@gmail.com>
Date: Wed, 16 Jul 2008 13:07:40 -0700 (PDT)
Local: Wed, Jul 16 2008 4:07 pm
Subject: List all objects in memcached
Is there any way (a function maybe) to list all the objects that i
have on memcache?.
is there a way to see that?.

Emiliano J. Horcada


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Josef Finsel  
View profile  
 More options Jul 16 2008, 4:27 pm
From: "Josef Finsel" <carpd...@gmail.com>
Date: Wed, 16 Jul 2008 16:27:12 -0400
Local: Wed, Jul 16 2008 4:27 pm
Subject: Re: List all objects in memcached

Nope.

Listing all of the objects in memcached would be very non-performant and
would block updates and adds.  Why do you want to see the list?

Josef

"If you see a whole thing - it seems that it's always beautiful. Planets,
lives... But up close a world's all dirt and rocks. And day to day, life's a
hard job, you get tired, you lose the pattern."
Ursula K. Le Guin


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
HE  
View profile  
 More options Jul 16 2008, 4:32 pm
From: HE <emilianohorc...@gmail.com>
Date: Wed, 16 Jul 2008 13:32:55 -0700 (PDT)
Local: Wed, Jul 16 2008 4:32 pm
Subject: Re: List all objects in memcached
I have an aplication (not made by me) and i have to rewrite some parts
of the code, and it would come very handy to have the list of all the
objects in cache so i know how to call them without going through the
entire code looking for the name of each object.

On Jul 16, 5:27 pm, "Josef Finsel" <carpd...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ray Krueger  
View profile  
 More options Jul 16 2008, 4:38 pm
From: "Ray Krueger" <raykrue...@gmail.com>
Date: Wed, 16 Jul 2008 15:38:51 -0500
Local: Wed, Jul 16 2008 4:38 pm
Subject: Re: List all objects in memcached
Turns out there's a great way to have a look see at that. Have a look
at mcinsight, it was mentioned a bit ago on this list...
http://groups.google.com/group/memcached/browse_thread/thread/d72ed6f...

The code is out at:
http://github.com/andrewfromgeni/mcinsight/tree

I hope you have a mac handy :P


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
HE  
View profile  
 More options Jul 16 2008, 4:43 pm
From: HE <emilianohorc...@gmail.com>
Date: Wed, 16 Jul 2008 13:43:20 -0700 (PDT)
Local: Wed, Jul 16 2008 4:43 pm
Subject: Re: List all objects in memcached
Mmm sounds good, but didnt undestand how it works. Im still reading
though.
Dont have a mac :(

On Jul 16, 5:38 pm, "Ray Krueger" <raykrue...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Boris Partensky  
View profile  
 More options Jul 16 2008, 4:43 pm
From: "Boris Partensky" <boris.parten...@gmail.com>
Date: Wed, 16 Jul 2008 16:43:36 -0400
Local: Wed, Jul 16 2008 4:43 pm
Subject: Re: List all objects in memcached

By "name of each object" do you mean memcached key? IF you want to dump the
keys once to see what they are,  you can use stats command. It is blocking
and will take awhile, but this will serve your purpose I guess.

--
--Boris

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
HE  
View profile  
 More options Jul 16 2008, 4:45 pm
From: HE <emilianohorc...@gmail.com>
Date: Wed, 16 Jul 2008 13:45:25 -0700 (PDT)
Local: Wed, Jul 16 2008 4:45 pm
Subject: Re: List all objects in memcached
ok, how can i do that?

On Jul 16, 5:43 pm, "Boris Partensky" <boris.parten...@gmail.com>
wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
dormando  
View profile  
 More options Jul 16 2008, 4:50 pm
From: dormando <dorma...@rydia.net>
Date: Wed, 16 Jul 2008 13:50:46 -0700 (PDT)
Local: Wed, Jul 16 2008 4:50 pm
Subject: Re: List all objects in memcached

That doesn't list all keys, it lists a subset.

HE; what you should probably do is write a wrapper around the original
application's memcached get/set/etc commands and have it log the keys its
using. Then use that log to interact with the application.

-Dormando


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Boris Partensky  
View profile  
(1 user)  More options Jul 16 2008, 5:47 pm
From: "Boris Partensky" <boris.parten...@gmail.com>
Date: Wed, 16 Jul 2008 17:47:02 -0400
Local: Wed, Jul 16 2008 5:47 pm
Subject: Re: List all objects in memcached

Ok, you need to use a combination of  "stats items" and "stats cachedump"
commands.
Basically, stats items spits out stats for each slab class. Part of that
stats is slab class id, which (along with limit number) you need to pass to
"stats cachedump".
Of course you need to do it on every server. Alternatively, if you use java
whalin client, it kind of supports it already, you just need to call
statsItems, parse out slab id and call statsCacheDump (or something like
this, check out this link
http://www.google.com/codesearch?hl=en&q=memcached+stats+lang:java+sh...
).
 Here is what I just did on my dev machine and got some keys listed:

marfa:~ boris$ nc localhost 11211
stats items
STAT items:1:number 53
STAT items:1:age 91710
STAT items:2:number 61
STAT items:2:age 91710
STAT items:3:number 6
STAT items:3:age 76285
STAT items:13:number 2
STAT items:13:age 91710
STAT items:14:number 9
STAT items:14:age 76938
STAT items:15:number 8
STAT items:15:age 76302
STAT items:16:number 2
STAT items:16:age 76264
END
stats cachedump 15 100
ITEM UserMemcache_0_19680722 [2036 b; 1216152837 s]
ITEM UserMemcache_0_19680718 [1790 b; 1216152837 s]
ITEM UserMemcache_0_19680717 [1790 b; 1216152837 s]
ITEM UserMemcache_0_19680719 [1790 b; 1216152837 s]
ITEM UserMemcache_0_19680707 [1786 b; 1216152837 s]
ITEM UserMemcache_0_19680708 [2020 b; 1216152837 s]
ITEM UserMemcache_0_19680709 [1833 b; 1216152837 s]
ITEM UserMemcache_0_19680706 [1922 b; 1216152837 s]
END

--
--Boris

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
dormando  
View profile  
 More options Jul 16 2008, 8:14 pm
From: dormando <dorma...@rydia.net>
Date: Wed, 16 Jul 2008 17:14:49 -0700 (PDT)
Local: Wed, Jul 16 2008 8:14 pm
Subject: Re: List all objects in memcached

That does not list all keys. It lists keys up to a certain buffer size (a
meg?).
It's also a really horrible habit to get into in case you end up relying
on this and roll into production.

-Dormando


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Boris Partensky  
View profile  
 More options Jul 16 2008, 11:52 pm
From: "Boris Partensky" <boris.parten...@gmail.com>
Date: Wed, 16 Jul 2008 23:52:17 -0400
Local: Wed, Jul 16 2008 11:52 pm
Subject: Re: List all objects in memcached

Clearly. But I think he just wanted to get a sense of what current cache
looks like.

--
--Boris

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ludovic Levesque  
View profile  
 More options Jul 17 2008, 2:05 am
From: "Ludovic Levesque" <lud...@gmail.com>
Date: Thu, 17 Jul 2008 08:05:03 +0200
Local: Thurs, Jul 17 2008 2:05 am
Subject: Re: List all objects in memcached
Hi,

I just copy an older message I posted one day on list:

you can have a little data usage report sniffing the network:
ngrep -W none -T -d any "^(get|set|delete|END|STORED|VALUE|DELETED)"
port 11211 | awk '{print $1 " " $2}'

or without the awk.

It's just plain keys and return values, but it can be useful to have a
look at what is used in cache.

Hope it helps
Ludovic


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
HE  
View profile  
 More options Jul 17 2008, 8:10 am
From: HE <emilianohorc...@gmail.com>
Date: Thu, 17 Jul 2008 05:10:28 -0700 (PDT)
Local: Thurs, Jul 17 2008 8:10 am
Subject: Re: List all objects in memcached
Thanx to everyone.
There are a lot of good answers.
I guess im going to do a log to the aplication so i can read the keys
an time they where made on. It´s what i nead.
Thank again everyone.

HE

On Jul 17, 3:05 am, "Ludovic Levesque" <lud...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google