PHP Session Expiry
jfbustarret at wat.tv
Fri Sep 28 07:40:20 UTC 2007
memcached do not release memory unless it is needed. Thiis means that a running memcached instance will always be full (99% of the data might have expired, one cannot know).
Your stats report that [evictions] => 0, which means your server never had to drop valid sessions to free memory for new ones.
De : memcached-bounces at lists.danga.com [mailto:memcached-bounces at lists.danga.com] De la part de Liam MacKenzie
Envoyé : vendredi 28 septembre 2007 03:40
À : memcached at lists.danga.com
Objet : PHP Session Expiry
I've recently set up a memcached server for the purpose of PHP Session clustering. It's working very nicely, although I'm having trouble working out how to control the lifetime of my sessions. I'm just using the standard PECL module and no modification to my code.
I've got memcached running with 512M of RAM allocated to it. I run some fairly busy sites, so I figured I'd go overkill on the memory allocation just in case. I'd like to lower this if possible, but I noticed this morning (after 3 days of operation) that all of that 512M is being utilised and just under 5Gigs of session data has been saved to the data in that timespan!!
My main goal is to be able to control my session lifetime, but I'm also interested in learning about any other tips and tricks people might have to offer with the management of memcached. So far, the most information I've been able to gather from my daemon is the following:
Thanks in advance!
"Sometimes a few hours of trial & error
can save minutes of reading manuals."
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the memcached