what happens when it's full ? On Tue, Mar 17, 2009 at 5:36 PM, Dustin <[email protected]> wrote:
> > > On Mar 17, 10:27 am, tongueroo <[email protected]> wrote: > > Hi guys, > > > > I was wondering if memcached frees up unused ram after it expires or > > if it just keeps using the ram in there but invalidates the key. > > No, it should never free RAM. > > > Here's the pattern I've been seeing with the memcached. Memcached for > > us doesnt seem to release memory, it just keeps growing until > > eventually slowness shows up on our site and then we are required > > restart the memcached instances and mongrels afterwards because > > newrelic starts showing that memcached reads are slow. The reason I > > think that memcached doesnt release memory for us is that it takes us > > about a week before the 1GB memcached on a slice gets full and our > > longest expire is 6 hours... > > It sounds like you're just giving it more memory than you can > afford. It won't grow (much) beyond what you tell it that it can. If > 1GB is too big for you, tell it it can only have 512MB. -- ☠ Roch DELSALLE 55, rue de Bellechasse. 75007 Paris FRANCE [email protected]
