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 : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Liam
MacKenzie
Envoyé : vendredi 28 septembre 2007 03:40
À : [email protected]
Objet : PHP Session Expiry
Hi all.
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:
http://203.36.103.220/memcache_info.php
Thanks in advance!
Liam
--
________________________________
"Sometimes a few hours of trial & error
can save minutes of reading manuals."