0

I'm running an apache2 server on Debian 7

Php files are handled by fcgi. After a migration of server all is working fine. But alsmost every hour the serveur doesnt answer to http requests (http client is waiting for a response for many seconds until an error 500 happens). This last for alsmost 1 minute, then all work fine.

This happens alsmost once every hour.

Didn't find any reason, any cronjob that would match.

But in the log i have 3 related kinds of errors :

mod_fcgid: can't apply process slot for /var/www/user/wrapper
Premature end of script headers: script.php
mod_fcgid: read data timeout in 40 seconds

Also, memory usage, and cpu usage are normal during the minute the server doesnt answer and put that in the logs.

1 Answers1

0

It's very likely that you are simply running out of processes to deal with requests. You probably want to increase your MaxClients and/or MaxSpareServers.

You may also wish to check your PHP configuration settings (FCGI settings not php.ini)

Tiffany Walker
  • 6,681
  • 14
  • 56
  • 82