Reducing memory usage for custom resources for services module
Posted by cheewe on March 26, 2013 at 2:30pm
I have a Drupal 6.19 site that also links to some mobile app via custom resources written using Drupal Services 3.x module.
I have set php memory limit to 512M. The site works fine without any memory issues.
However, because the mobile app fires 4-5 concurrent web services requests as a burst, a single app running can apprently cause my server to run out of memory and return a 500 Internal Server Error. The log shows this error:
Cannot allocate memory: couldn't create child process: /opt/suphp/sbin/suphp for /home/cmadmin/public_html/drupal/index.php