Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

The exact error message is this:

12)Cannot allocate memory: couldn't create child process: /usr/sbin/suphp for <php script file>

This is not a VPS, it's a generic Gentoo server. There is 1G of RAM for the server and 700M of RAM free at any given time, including when running this rather tiny script that only creates 1 connection to a MySQL DB. There's a cron job that runs this script every 30 seconds and suPHP runs out of memory almost every single time.

Can anybody please help?

share|improve this question
    
Recompiling apache/php is not an option as uptime for other scripts is critical. Thanks! –  user183037 Jun 6 '11 at 19:55
    
Nobody........? :( –  user183037 Jun 7 '11 at 2:31
add comment

1 Answer

Use something like <?php print system('ulimit -a'); ?> to check system limits. Check apache configuration for RLimitMEM directive.

share|improve this answer
    
Thanks Alex - it's just set to unlimited, so I guess that's not the problem :( –  user183037 Jun 7 '11 at 18:59
add comment

Your Answer

 
discard

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.