mod_fcgid: ap_pass_brigade 在 handle_request 函数中失败 [英] mod_fcgid: ap_pass_brigade failed in handle_request function
问题描述
我不断在错误日志中收到警告:
I keep on getting warning in my error logs:
(103)Software caused connection abort: mod_fcgid: ap_pass_brigade failed in handle_request function
这是我的 fcgid.conf
Here is my 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 错误......无论如何有办法阻止这种情况发生吗?
The server serves up a 500 error once in a while, then is pretty speedy for a while, then serves up another 500 error... Is there anyway to stop this from happening?
推荐答案
默认情况下 FastCGI 进程在 500 个请求后退出.您可以提高 PHP_FCGI_MAX_REQUESTS(在包装器中)或将 FcgidMaxRequestsPerProcess 限制为 500.
By default FastCGI processes exit after 500 requests. You can either raise PHP_FCGI_MAX_REQUESTS (in the wrapper) or limit FcgidMaxRequestsPerProcess to 500.
参见 http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html#examplesPHP 的特殊注意事项"
See http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html#examples "Special PHP considerations"
这篇关于mod_fcgid: ap_pass_brigade 在 handle_request 函数中失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!