roc230 / spymemcached

Automatically exported from code.google.com/p/spymemcached
0 stars 0 forks source link

objects deleted from cache after 20min #126

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm using memcached to store these data:
- user object - an java object consisting of username, password, city...;
- user status info;
- counter,

so for every user login, I will make three memcached put operation. After 
making 10.000 logins, I have these stats via memcached stats:
bytes - ~1Mb
counter - 9980, as this is an stress test, the server doesn't reply to 
every request.

The problem is that after 20 min, memcached deleted all login info - 
counter decresed to 0, even if I set the expire time (example: 3600 or 
60*60*24*29 or 0). Have you ever faced a problem like that?

Original issue reported on code.google.com by alexandr...@gmail.com on 12 Mar 2010 at 8:55

GoogleCodeExporter commented 9 years ago
Do you believe this to be a client problem?  Why is this posted here?  I saw 
this on
the memcached list as well, so you may not be sure if you have a client or a 
server
problem?

Do the statistics show any evictions?

Original comment by ingen...@gmail.com on 12 Mar 2010 at 11:58

GoogleCodeExporter commented 9 years ago
Hello,

in fact, I don't believe this is a client problem, because I made a test with 
another
java library, and had the same result, I post here just to talk to someone who 
knows
more about memcached than me, and holping that someone already have a problem 
like
that, and found a solution. Memcached was started with -vv option, and I don't 
see
any strange messages on screen. Thanks for your fast reply.

Original comment by alexandr...@gmail.com on 13 Mar 2010 at 2:17

GoogleCodeExporter commented 9 years ago
Posting here is a filing a bug against a client.  :)  We've got a mailing list 
independent 
from the normal memcached one (the former of which probably being made up of a 
subset of the readership of the latter).

Original comment by dsalli...@gmail.com on 13 Mar 2010 at 2:29

GoogleCodeExporter commented 9 years ago
ok, thanks for your reply

Original comment by alexandr...@gmail.com on 13 Mar 2010 at 6:41