PHP error: Unable to allocate memory for pool

If you are getting below error

Warning: Unable to allocate memory for pool

then you may think it is PHP memory issue and update memory size in file..

But the error occurs due to Alternative PHP Cache (APC). The APC directives need to be updated in this case.

To resolve the issue, open apc.ini or php.ini file in editor and follow below steps:

1) Update mktemp-style file_mask to pass to the mmap module correctly


2) Update share memory value


The value can be adjusted as per the requirement.

3) Adjust the number of seconds a cache entry is allowed to idle in a slot


The value can be adjusted as per the requirement.

4) Save the file and restart the Apache service.

Share on Facebook2
Share on Google+6Tweet about this on TwitterShare on StumbleUpon0Share on LinkedIn1Share on Tumblr0Digg thisPin on Pinterest0Share on Reddit0Email this to someonePrint this page

About Abhijit Sandhan

Abhijit Sandhan
Loves Linux, Blogging, Traveling, Hiking and sharing Knowledge!

Leave a Reply

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