Unable to Allocate Memory Pool Error

I have had a cloud server with 8 Core and 8 GB RAM and only got less than 15 sites added on that VestaCP server. I thought everything was ok. But day after doing this I found all of my site showing an error in header including WordPress sites. The error was “Unable to allocate memory pool”.  I started searching why this is happening! Thought it could be server problem for virtual memory because they didn’t mentioned “Guaranteed RAM”. After lot of search I failed to achieve any result how to solve this. Then I decided to change server. I bought a dedicated server and installed all same thing like that cloud server, I found the result is same. That error still occurring. Then I started serious analyzing to overcome this problem cause I like to use vestacp but if this remain unsolved I must leave it!

At last I have got the solution! It is for APC (Alternative PHP Cache) installed by vestacp. This thing is very good for your server and page speed. So what to do now?

In /etc/php.d/apc.ini I have just edited one thing that is

apc.shm_size=64M

I have changed it like

apc.shm_size=512M

You can increase it as per your need. Don’t increase much if you have not much memory available in your server.

rainweb has written 24 articles

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>