ap_pass_brigade在handle_request_ipc函数中失败 [英] ap_pass_brigade failed in handle_request_ipc function
问题描述
页面导致500错误,并且日志显示以下内容:
A page is resulting in a 500 error and the log shows this:
[Wed Mar 20 11:19:23 2013] [warn] [client 127.0.0.1] (104)Connection reset by peer: mod_fcgid: ap_pass_brigade failed in handle_request_ipc function
当您尝试在类别页面上查看90种产品时,这是在Lemonstand网站上发生的.从每页60个到90个步长似乎太多了,这会导致500个错误.
It is occuring on a lemonstand website, when you try to view 90 products on a category page. The step from 60 per page to 90 appears to be too many, and it results in a 500 error.
该页面在错误发生前的加载时间不超过约4秒钟,并且服务器上正在运行的许多其他网站都没有遇到此问题.
The page loads for no more than around 4 seconds before the error, and there are many other websites running on the server which do not experience this issue.
到目前为止,我一直认为这是由于环境设置引起的,而不是由Lemonstand引起的.我已经用谷歌搜索了一下,并尝试了各种配置设置以使其正常运行,到目前为止还没有人修复它.下面是当前的fcgid配置,我已经注释掉了一些我尝试更改的变量.
I have so far assumed that this is due to environment settings, and not caused by Lemonstand. I have googled the heck out of this and tried various config settings to get it to behave, none have so far fixed it. Below is the current fcgid config, I have commented out some of the variables I tried changing.
Fcgid.conf:
Fcgid.conf:
<IfModule mod_fcgid.c>
AddHandler php-fcgi .php
Action php-fcgi /fcgi-bin/php-fcgi-wrapper
AddType application/x-httpd-php .php
Alias /fcgi-bin/ /var/apache/fcgi-bin/
FcgidConnectTimeout 180
FcgidIOTimeout 600
FcgidBusyTimeout 3600
FcgidMaxRequestLen 226777216
FcgidFixPathinfo 1
#FcgidOutputBufferSize 65536
#FcgidProcessLifeTime 30
#FcgidMaxRequestsPerProcess 500
FcgidIdleTimeout 60
#FcgidIdleScanInterval 1
#FcgidBusyTimeout 60
#FcgidBusyScanInterval 1
#FcgidInitialEnv PHP_FCGI_MAX_REQUESTS 100000
<Location /fcgi-bin/>
SetHandler fcgid-script
Options +ExecCGI
Order allow,deny
Allow from all
</Location>
</IfModule>
推荐答案
这是您收到的 PHP-FCGI
限制错误.您需要调整域的"fcgi-bin/php5.fcgi"文件中的" PHP_FCGI_MAX_REQUESTS
"变量或Apache配置中的" FcgidMaxRequestsPerProcess
"变量文件.
This is a PHP-FCGI
limit error you're receiving. You'll need to adjust either the "PHP_FCGI_MAX_REQUESTS
" variable inside the "fcgi-bin/php5.fcgi" file for the domain or "FcgidMaxRequestsPerProcess
" variable inside the Apache config file.
http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html#examples
这篇关于ap_pass_brigade在handle_request_ipc函数中失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!