Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am hosting a number of websites on my Debian server running on NginX, all of my website's log files shows me an error like this

2011/11/23 10:01:03 [error] 5320#0: *349 FastCGI sent in stderr: "PHP Warning: Unknown: Unable to allocate memory for pool. in Unknown on line 0" while reading response header from upstream

I am using APC 3.1.6 with the latest version on PHP and Nginx

share|improve this question
I have tried it, it doesn't work for me :( – Vineet Sharma Nov 23 '11 at 9:25
And how is it configured? – symcbean Nov 21 '13 at 23:28

I had the same issue:

  • I reconfigured php-fpm (see my php-fpm.conf) to recycle processes more often and also how to react when processes don't respond anymore or throw errors
  • I configured APC (see my apc.ini) to use apc.mmap_file_mask=/dev/zero

Then the error disappeared.

share|improve this answer

Change you apc.ini settings like below


it works

Refer apc.configuration.php

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.