mod_fcgid:handle_quest函数中的ap_pass_brigade失败

kee*_*eeg 6 apache fastcgi

我继续在错误日志中收到警告:

(103)Software caused connection abort: mod_fcgid: ap_pass_brigade failed in handle_request function 
Run Code Online (Sandbox Code Playgroud)

这是我的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>
Run Code Online (Sandbox Code Playgroud)

服务器偶尔会出现500错误,然后暂时相当快,然后再提供500错误......无论如何要阻止这种情况发生?

小智 8

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

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