6

我不断在错误日志中收到警告:

(103)Software caused connection abort: mod_fcgid: ap_pass_brigade failed in handle_request function 

这是我的 fcgid.conf

<IfModule mod_fcgid.c>
SocketPath /var/lib/httpd/fcgid/sock
IdleTimeout 200
IdleScanInterval 200
ProcessLifeTime 1000
MaxProcessCount 1000
DefaultMinClassProcessCount 3
DefaultMaxClassProcessCount 100
IPCConnectTimeout 8
IPCCommTimeout 200
BusyTimeout 300
</IfModule>

服务器偶尔会出现 500 错误,然后会很快出现一段时间,然后再出现 500 错误……有没有办法阻止这种情况发生?

4

1 回答 1

8

默认情况下,FastCGI 进程在 500 个请求后退出。您可以提高 PHP_FCGI_MAX_REQUESTS(在包装器中)或将 FcgidMaxRequestsPerProcess 限制为 500。

请参阅http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html#examples“PHP特殊注意事项”

于 2012-10-02T07:39:50.373 回答