Re: [Mod-fcgid-users] Premature end of script headers, p_pass_brigade failed and others...
So, in my apache error_log i have often : mod_fcgid: can't apply process slot for /home/site1/www/index.php Any idea ? Thanks 2010/10/29 Julien Jabouin : > Hello, > > I update mod_fcgid to the last stable version 2.3.5 and i added > "FcgidMaxRequestsPerProcess 1000" and comment PHP_FCGI_CHILDREN but > now my website is very slow (about 5 to 10 seconds to have a page), do > you know why ? > > Thanks, > Julien > > 2010/9/25 Travers Carter : >> Hi, >> >> I'm not sure if this is the exact cause of your problem, but a few >> config changes I would try are below: >> >> On Sat, 25 Sep 2010 04:11:18 +0200, Julien Jabouin >> wrote: >>> >>> #cat /etc/apache2/mods-available/fcgid.conf >>> >>> AddHandler fcgid-script .fcgi >>> IPCConnectTimeout 20 >>> # IdleTimeout 300 >>> # IdleScanInterval 240 >>> # BusyTimeout 300 >>> # BusyScanInterval 120 >>> # ErrorScanInterval 6 >>> # ZombieScanInterval 3 >>> # ProcessLifeTime 3600 >>> # SpawnScoreUpLimit 10 >>> # IPCConnectTimeout 300 >>> # IPCCommTimeout 300 >>> >> >> You should add "MaxRequestsPerProcess 1000" to the above list, >> where 1000 is whatever value you set PHP_FCGI_MAX_REQUESTS to. >> >> If the two don't match some requests can fail. >> >> For the newer (Apache) version of mod_fcgid the directive is called >> FcgidMaxRequestsPerProcess, but it is the same thing. >> >> See >> http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html#fcgidmaxrequestsperprocess >> >> >>> >>> # cat /var/www/site1/php-cgi >>> #!/bin/bash >>> PHP_FCGI_CHILDREN=4 >>> PHP_FCGI_MAX_REQUESTS=1000 >>> export PHP_FCGI_CHILDREN >>> export PHP_FCGI_MAX_REQUESTS >>> exec /usr/bin/php5-cgi >>> >> >> >> Don't set PHP_FCGI_CHILDREN, mod_fcgid won't send more than one request at >> a time >> to a process, so you should increase the (Fcgid)MaxProcessesPerClass >> setting in >> apache instead. >> >> See >> http://wherethebitsroam.com/blogs/jeffw/apache-php-fastcgi-and-phpfcgichildren >> >> >> -- >> Travers Carter - Noggin - http://www.noggin.com.au/ >> >> -- >> Start uncovering the many advantages of virtual appliances >> and start using them to simplify application deployment and >> accelerate your shift to cloud computing. >> http://p.sf.net/sfu/novell-sfdev2dev >> ___ >> Mod-fcgid-users mailing list >> Mod-fcgid-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/mod-fcgid-users >> > -- Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev ___ Mod-fcgid-users mailing list Mod-fcgid-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mod-fcgid-users
Re: [Mod-fcgid-users] Premature end of script headers, p_pass_brigade failed and others...
Hello, I update mod_fcgid to the last stable version 2.3.5 and i added "FcgidMaxRequestsPerProcess 1000" and comment PHP_FCGI_CHILDREN but now my website is very slow (about 5 to 10 seconds to have a page), do you know why ? Thanks, Julien 2010/9/25 Travers Carter : > Hi, > > I'm not sure if this is the exact cause of your problem, but a few > config changes I would try are below: > > On Sat, 25 Sep 2010 04:11:18 +0200, Julien Jabouin > wrote: >> >> #cat /etc/apache2/mods-available/fcgid.conf >> >> AddHandler fcgid-script .fcgi >> IPCConnectTimeout 20 >> # IdleTimeout 300 >> # IdleScanInterval 240 >> # BusyTimeout 300 >> # BusyScanInterval 120 >> # ErrorScanInterval 6 >> # ZombieScanInterval 3 >> # ProcessLifeTime 3600 >> # SpawnScoreUpLimit 10 >> # IPCConnectTimeout 300 >> # IPCCommTimeout 300 >> > > You should add "MaxRequestsPerProcess 1000" to the above list, > where 1000 is whatever value you set PHP_FCGI_MAX_REQUESTS to. > > If the two don't match some requests can fail. > > For the newer (Apache) version of mod_fcgid the directive is called > FcgidMaxRequestsPerProcess, but it is the same thing. > > See > http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html#fcgidmaxrequestsperprocess > > >> >> # cat /var/www/site1/php-cgi >> #!/bin/bash >> PHP_FCGI_CHILDREN=4 >> PHP_FCGI_MAX_REQUESTS=1000 >> export PHP_FCGI_CHILDREN >> export PHP_FCGI_MAX_REQUESTS >> exec /usr/bin/php5-cgi >> > > > Don't set PHP_FCGI_CHILDREN, mod_fcgid won't send more than one request at > a time > to a process, so you should increase the (Fcgid)MaxProcessesPerClass > setting in > apache instead. > > See > http://wherethebitsroam.com/blogs/jeffw/apache-php-fastcgi-and-phpfcgichildren > > > -- > Travers Carter - Noggin - http://www.noggin.com.au/ > > -- > Start uncovering the many advantages of virtual appliances > and start using them to simplify application deployment and > accelerate your shift to cloud computing. > http://p.sf.net/sfu/novell-sfdev2dev > ___ > Mod-fcgid-users mailing list > Mod-fcgid-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/mod-fcgid-users > -- Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev ___ Mod-fcgid-users mailing list Mod-fcgid-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mod-fcgid-users
Re: [Mod-fcgid-users] Premature end of script headers, p_pass_brigade failed and others...
Thanks, I go to try this. 2010/9/25 Travers Carter : > Hi, > > I'm not sure if this is the exact cause of your problem, but a few > config changes I would try are below: > > On Sat, 25 Sep 2010 04:11:18 +0200, Julien Jabouin > wrote: >> >> #cat /etc/apache2/mods-available/fcgid.conf >> >> AddHandler fcgid-script .fcgi >> IPCConnectTimeout 20 >> # IdleTimeout 300 >> # IdleScanInterval 240 >> # BusyTimeout 300 >> # BusyScanInterval 120 >> # ErrorScanInterval 6 >> # ZombieScanInterval 3 >> # ProcessLifeTime 3600 >> # SpawnScoreUpLimit 10 >> # IPCConnectTimeout 300 >> # IPCCommTimeout 300 >> > > You should add "MaxRequestsPerProcess 1000" to the above list, > where 1000 is whatever value you set PHP_FCGI_MAX_REQUESTS to. > > If the two don't match some requests can fail. > > For the newer (Apache) version of mod_fcgid the directive is called > FcgidMaxRequestsPerProcess, but it is the same thing. > > See > http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html#fcgidmaxrequestsperprocess > > >> >> # cat /var/www/site1/php-cgi >> #!/bin/bash >> PHP_FCGI_CHILDREN=4 >> PHP_FCGI_MAX_REQUESTS=1000 >> export PHP_FCGI_CHILDREN >> export PHP_FCGI_MAX_REQUESTS >> exec /usr/bin/php5-cgi >> > > > Don't set PHP_FCGI_CHILDREN, mod_fcgid won't send more than one request at > a time > to a process, so you should increase the (Fcgid)MaxProcessesPerClass > setting in > apache instead. > > See > http://wherethebitsroam.com/blogs/jeffw/apache-php-fastcgi-and-phpfcgichildren > > > -- > Travers Carter - Noggin - http://www.noggin.com.au/ > > -- > Start uncovering the many advantages of virtual appliances > and start using them to simplify application deployment and > accelerate your shift to cloud computing. > http://p.sf.net/sfu/novell-sfdev2dev > ___ > Mod-fcgid-users mailing list > Mod-fcgid-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/mod-fcgid-users > -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ Mod-fcgid-users mailing list Mod-fcgid-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mod-fcgid-users
[Mod-fcgid-users] Premature end of script headers, p_pass_brigade failed and others...
Hello, >From few days, i have an issue with mod_fcgi (?). For one url which is good, sometimes i can acces to it, sometimes not. When it's not, sometimes i have an error in the browser web or sometimes, the webpage is partially shown. So this is an extract of my apache log : [Fri Sep 24 16:57:05 2010] [warn] (104)Connection reset by peer: mod_fcgid: read data from fastcgi server error. [Fri Sep 24 16:57:05 2010] [error] [client 88.XXX.XXX.176] Premature end of script headers: index.php, referer: http://www.site1.com/index.php/_admin/sales_order/view/order_id/1631/ [Fri Sep 24 16:57:07 2010] [notice] mod_fcgid: process 16282 going graceful shutdown, sending SIGTERM [Fri Sep 24 16:57:13 2010] [notice] mod_fcgid: process /home/site1/www/index.php(16282) exit(communication error), terminated by calling exit(), return code: 0 [Fri Sep 24 16:57:15 2010] [warn] (104)Connection reset by peer: mod_fcgid: read data from fastcgi server error. [Fri Sep 24 16:57:15 2010] [warn] (104)Connection reset by peer: mod_fcgid: ap_pass_brigade failed in handle_request function [Fri Sep 24 16:57:19 2010] [notice] mod_fcgid: process 16277 going graceful shutdown, sending SIGTERM [Fri Sep 24 16:57:19 2010] [notice] mod_fcgid: call /home/site1/www/afa/public/xmlrpc-cart.php with wrapper /var/www/site1/php-cgi [Fri Sep 24 19:04:27 2010] [error] [client 83.XXX.XXX.139] Premature end of script headers: index.php, referer: http://www.site1.com/nos-bases-pour-vos-creations/flacons-et-contenants?limit=all&manufacturer=71&p=3 [Fri Sep 24 19:04:32 2010] [notice] mod_fcgid: process 21906 going graceful shutdown, sending SIGTERM [Fri Sep 24 19:04:38 2010] [notice] mod_fcgid: process /home/site1/www/index.php(21906) exit(communication error), terminated by calling exit(), return code: 0 [Fri Sep 24 19:15:50 2010] [warn] (104)Connection reset by peer: mod_fcgid: read data from fastcgi server error. [Fri Sep 24 19:15:50 2010] [warn] (104)Connection reset by peer: mod_fcgid: ap_pass_brigade failed in handle_request function [Fri Sep 24 19:15:52 2010] [notice] mod_fcgid: process 22115 going graceful shutdown, sending SIGTERM [Fri Sep 24 19:15:58 2010] [notice] mod_fcgid: process /home/site1/www/index.php(22115) exit(communication error), terminated by calling exit(), return code: 0 [Sat Sep 25 03:00:31 2010] [notice] mod_fcgid: process /home/site1/www/index.php(9299) exit(communication error), terminated by calling exit(), return code: 0 [Sat Sep 25 03:02:13 2010] [warn] (104)Connection reset by peer: mod_fcgid: read data from fastcgi server error. [Sat Sep 25 03:02:13 2010] [error] [client 88.XXX.XXX.176] Premature end of script headers: index.php, referer: http://www.site1.com/index.php/_admin/catalog_product/edit/id/702/ [Sat Sep 25 03:02:16 2010] [notice] mod_fcgid: process 9630 going graceful shutdown, sending SIGTERM [Sat Sep 25 03:02:22 2010] [notice] mod_fcgid: process /home/site1/www/index.php(9630) exit(communication error), terminated by calling exit(), return code: 0 [Sat Sep 25 03:08:27 2010] [warn] (104)Connection reset by peer: mod_fcgid: read data from fastcgi server error. [Sat Sep 25 03:08:27 2010] [error] [client 88.XXX.XXX.176] Premature end of script headers: index.php, referer: http://www.site1.com/index.php/_admin/system_config/edit/section/sales/ [Sat Sep 25 03:08:30 2010] [notice] mod_fcgid: process 9304 going graceful shutdown, sending SIGTERM [Sat Sep 25 03:08:36 2010] [notice] mod_fcgid: process /home/site1/www/index.php(9304) exit(communication error), terminated by calling exit(), return code: 0 Do you know why i have this issue ? I don't know what to do… I put now my configuration, maybe it can help you… Sorry for my bad english. # uname -a Linux xx.domain.tld 2.6.34.6--std-ipv6-64 #3 SMP Fri Sep 17 16:19:12 UTC 2010 x86_64 GNU/Linux # apache2 -v Server version: Apache/2.2.9 (Debian) Server built: Nov 14 2009 21:03:32 # apache2ctl -t -D DUMP_MODULES Loaded Modules: core_module (static) log_config_module (static) logio_module (static) mpm_worker_module (static) http_module (static) so_module (static) actions_module (shared) alias_module (shared) auth_basic_module (shared) authn_file_module (shared) authz_default_module (shared) authz_groupfile_module (shared) authz_host_module (shared) authz_user_module (shared) autoindex_module (shared) cgid_module (shared) deflate_module (shared) dir_module (shared) env_module (shared) expires_module (shared) fcgid_module (shared) mime_module (shared) negotiation_module (shared) rewrite_module (shared) setenvif_module (shared) ssl_module (shared) status_module (shared) suexec_module (shared) vhost_alias_module (shared) Syntax OK #cat /etc/apache2/mods-available/fcgid.load LoadModule fcgid_module /usr/lib/apache2/modules/mod_fcgid.so #cat /etc/apache2/mods-available/fcgid.conf AddHandlerfcgid-script .fcgi IPCConnectTimeout 20 # IdleTimeout 300 # IdleScanInterval 240 # BusyTimeout 300 # BusyScanInte