Hey there -
We're trying to get memcached running reliably on our servers and having a rough go of it. cache seem to get filled up pretty quickly and then thrashes the database. In addition we've started to see the following error:
PHP Fatal error: Allowed memory size of 52428800 bytes exhausted (tried to allocate 4573 bytes) in dmemcache.inc on line 39
So, wondering if there are any tips on what a good max_memory setting for php is with memcached enabled. 50MB seems like a lot but for some reason our install/config of drupal 5.10 and memcached 5.x-1.8 keeps choking.
Any help would be greatly appreciated!
regards,
brian
Comments
Comment #1
jeremy commentedMemcache shouldn't require an excessive amount of memory -- perhaps you have lots of other contrib modules installed that are taking lots of memory? If your database is thrashing, then you're over committing server resources. Be sure that the RAM the database needs + the RAM Apache needs + the RAM that memcache needs (if all on the same server) does NOT exceed the total RAM on the server! In particular, don't set max_connections too high for the database, don't set MaxChildren too high for Apache, and don't give Memcache more memory than you can afford.
Comment #2
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.