| Summary | memcache session tracking | 
| Queue | Horde Framework Packages | 
| Queue Version | HEAD | 
| Type | Bug | 
| State | Not A Bug | 
| Priority | 1. Low | 
| Owners | |
| Requester | adrieder (at) sbox (dot) tugraz (dot) at | 
| Created | 06/11/2007 (6721 days ago) | 
| Due | |
| Updated | 06/12/2007 (6720 days ago) | 
| Assigned | 06/11/2007 (6721 days ago) | 
| Resolved | 06/12/2007 (6720 days ago) | 
| Github Issue Link | |
| Github Pull Request | |
| Milestone | |
| Patch | No | 
memcached and the ignorance of many users who just are not willing to
click on the logout button.
And, yes I have now seen the "gc - TODO" comment in the source.
Too bad that the work around requires "hacking" the source code of
memcached. This is even not documented, as far as I know. I guess in
case of problems the memcached guys will tell us that this hack is not
official and so unsupported.
A comment in slab.c says:
[...]
The last slab size is always 1MB, since that's the maximum item size
allowed by the memcached protocol.
http://lists.danga.com/pipermail/memcached/2006-January/001879.html
active users, and there really is a hard 1MB limit in memcache, there
doesn't seem to be anything we can do about this.
If your sessions are not being terminated correctly - i.e. your users
are not logging out properly - then you will probably need to run some
sort of garbage collection method manually right now to clean out
these old entries. As the code indicates - garbage collection for
session information in the class is todo, but hasn't yet been
implemented.
bytes, which is the protocol defined object size for storable objects
in memcached.
Didi
BTW: this can also happen in other places e.g. composing a message
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ memcache session tracking
Queue ⇒ Horde Framework Packages
State ⇒ Unconfirmed
bytes, which is the protocol defined object size for storable objects
in memcached.
When this happens, session tracking using memcached is not working
correctly. I get a lot of errors of the following kind:
Mon Jun 11 23:07:52 2007] [error] [client xxx.xxx.xxx.xxx] PHP Notice:
Memcache::set() [<a
href='function.Memcache-set'>function.Memcache-set</a>]: marked server
'xxx.xxx.xxx.xxx:11211' as failed in
/usr/local/lib/php/Horde/Memcache.php on line 151
And, YES I enabled compression.