Memory leak with 1.1.12?

Matthew Nielsen xunker at mac.com
Wed Dec 14 01:27:08 UTC 2005


I'm seeing some odd behaviour with memcached taking more ram than the 
startup options should let it.  Memcached 1.1.12 with libevent 1.1a 
running on RHEL 3 stock 2.4 kernel (non-epoll) with data being pushed 
in from the perl API.  It is invoked with:

/usr/local/bin/memcached -d -m 250 -l `hostname -i` -p SOMEPORT -u root

...so, it should use only 250 megs, right?  But after a few (tens of) 
hours, I start seeing this line in 'top':

22000 root      25   0  351M 351M   564 R     6.8 11.6  64:20   1 
memcached

Using 351MB?  Some get as high as 400MB.  Is this a known issue, or am 
I starting the server with the wrong parameters?



More information about the memcached mailing list