linux - When does memcached remove items? -


i'm relatively new memcached , know basics of getting set , working. i've run issue on our magento-based website cache growing large , causing slowness when editing product details. telnetted memcached server , ran stats , noticed there 900 megs , on 65500 items in there. typed flush_all command , re-ran stats , it's still same. after research have found flushing invalidates entries doesn't free space. on time new items added. have seen, never frees 900 megs of space , never deletes 65000+ items seem stuck in there. haven't tried restarting memcached yet live site , don't want cause problems. if restarting server frees space, that's still not solution because don't want have every time. can please me understand what's going on , how can fix this?

you'll want tweak maximum amount of memory memcached allowed use in instance. @ command line, -m flag used set maximum number of megabytes cache can hold. flushing cache merely invalidates in it, , items evicted lazily. if want memcached use less memory, there's no getting around it: you'll have restart less memory.


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -