I have an application that will run for a very long time (hours) without any I/O between the server and the browser. It continually fails after about 7-8 minutes of wall-clock time with apache errors of
[code]
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, root@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
The error_log shows:
[code]
[Sun Apr 05 13:45:06 2009] [error] [client 206.72.99.10] Premature end of script headers: tool-XXCatalogConvert.php, referer: http://test.ez-om.com/om/Tests/tool-XXCatalogConvert.php
[Sun Apr 05 13:45:06 2009] [warn] (104)Connection reset by peer: mod_fcgid: read data from fastcgi server error.
This is NOT a php set_time_limit() issue (I reset it at the top of each loop).
I have set the following Apache directives in hopes of allowing this to run but can’t seem to find the magic one that will make it work.
[code]
Timeout 7200
KeepAlive Off
MaxKeepAliveRequests 0
KeepAliveTimeout 3600
And within the VirtualServer block I do:
[code]
IPCCommTimeout 7200
IPCConnectTimeout 10
ProcessLifeTime 7200
IdleTimeout 7200
BusyTimeout 3600
But still, after about 7 minutes it dies with the above errors….
This script does a lot of DB access and connects to 2 remote sites via ftp (persistent connection outside of the loop).
Anyone have the magic answer?