Your message dated Mon, 15 Nov 2010 19:35:03 +0000
with message-id <[email protected]>
and subject line Bug#595276: fixed in libapache2-mod-fcgid 1:2.3.6-1
has caused the Debian Bug report #595276,
regarding libapache2-mod-fcgid: Spawns a new PHP interpreter for each request
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
595276: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=595276
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: libapache2-mod-fcgid
Version: 1:2.3.5-2
Severity: grave
Justification: renders package unusable
I am currently happily using mod_fcgid on a system running lenny
(version 2.2). When testing version 2.3.5 of the module I found that it
seems to spawn new FastCGI servers a lot, and ignores any limits that I
have configured.
First, the packages I'm testing with:
ii apache2-mpm-worker 2.2.9-10+lenny8 Apache HTTP Server - high speed
threaded model
ii libapache2-mod-fcgid 1:2.3.5-2 an alternative module compat with
mod_fastcgi
ii php5-cgi 5.2.6.dfsg.1-1+lenny server-side, HTML-embedded
scripting language (CGI binar
In my main Apache configuration, I have the following directive:
DefaultMaxClassProcessCount 5
In the .htaccess file for my test site, I have:
AddHandler fcgid-script .php
FCGIWrapper /srv/www/test.example/cgi-bin/php5 .php
The wrapper script is quite simple; it only exists to work around mod_suexec's
uid/gid match
checks:
#!/bin/sh
set -e
exec /usr/lib/cgi-bin/php5
So, having set this up, I run 'ab -c 15 -n 500
http://test.example.com/test.php'. This results in hundreds of PHP
processes being spawned...
$ pstree -u $(</var/run/apache2.pid)
apache2─┬─apache2(www-data)
├─apache2(www-data)───335*[php5(www-test)]
└─2*[apache2(www-data)───26*[{apache2}]]
... and these log messages:
[Thu Sep 02 16:47:47 2010] [error] (24)Too many open files: mod_fcgid: couldn't
set child process attributes: /var/lib/apache2/fcgid/sock/13843.335
[Thu Sep 02 16:47:47 2010] [warn] (24)Too many open files: mod_fcgid: spawn
process /srv/www/test.example/public_html/test.php error
With version 1:2.2-1 of the module, mod_fcgid correctly stops spawning
at 5 processes. Even if I remove the DefaultMaxProcessCount directive,
the same stress test only causes 11 php5 processes to be spawned.
I have tried to debug this but don't have the complete answer. mod_fcgid
calls the apply_free_procnode function to look for an existing spawned
process to handle a request. This search always seems to fail,
because the share_grp_id seems to change for every request. Hence,
apply_free_procnode returns NULL and a new process is spawned for each
request.
This also explains why the maximum process count is not obeyed:
the is_spawn_allowed function does a similar search, the mismatch for
which causes it to assume that there are no existing processes that will
handle the request, so it always returns 1.
Unfortunately I don't really know what the share_grp_id number is, or
why it changes for each request. :(
--- End Message ---
--- Begin Message ---
Source: libapache2-mod-fcgid
Source-Version: 1:2.3.6-1
We believe that the bug you reported is fixed in the latest version of
libapache2-mod-fcgid, which is due to be installed in the Debian FTP archive:
libapache2-mod-fcgid-dbg_2.3.6-1_amd64.deb
to main/liba/libapache2-mod-fcgid/libapache2-mod-fcgid-dbg_2.3.6-1_amd64.deb
libapache2-mod-fcgid_2.3.6-1.diff.gz
to main/liba/libapache2-mod-fcgid/libapache2-mod-fcgid_2.3.6-1.diff.gz
libapache2-mod-fcgid_2.3.6-1.dsc
to main/liba/libapache2-mod-fcgid/libapache2-mod-fcgid_2.3.6-1.dsc
libapache2-mod-fcgid_2.3.6-1_amd64.deb
to main/liba/libapache2-mod-fcgid/libapache2-mod-fcgid_2.3.6-1_amd64.deb
libapache2-mod-fcgid_2.3.6.orig.tar.gz
to main/liba/libapache2-mod-fcgid/libapache2-mod-fcgid_2.3.6.orig.tar.gz
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Tatsuki Sugiura <[email protected]> (supplier of updated libapache2-mod-fcgid
package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Thu, 11 Nov 2010 02:48:54 +0900
Source: libapache2-mod-fcgid
Binary: libapache2-mod-fcgid libapache2-mod-fcgid-dbg
Architecture: source amd64
Version: 1:2.3.6-1
Distribution: unstable
Urgency: low
Maintainer: Tatsuki Sugiura <[email protected]>
Changed-By: Tatsuki Sugiura <[email protected]>
Description:
libapache2-mod-fcgid - an alternative module compat with mod_fastcgi
libapache2-mod-fcgid-dbg - debugging symbols for mod_fcgid
Closes: 595276
Changes:
libapache2-mod-fcgid (1:2.3.6-1) unstable; urgency=low
.
* New upstream release (Closes: #595276)
Checksums-Sha1:
d056f73c9e628d40ee469638c1a4b67c36338f1e 1887 libapache2-mod-fcgid_2.3.6-1.dsc
018245896f331909e896685ab3ca86b163846e4d 101883
libapache2-mod-fcgid_2.3.6.orig.tar.gz
ec6b3132c4b8188aadd712d490a23a92ca19b18c 4541
libapache2-mod-fcgid_2.3.6-1.diff.gz
cf7763ecee1088cc26b2228840c09bfd93c5f1a3 73920
libapache2-mod-fcgid_2.3.6-1_amd64.deb
8ad09e3bf861bb7c6ae64488aae7b77009312258 13696
libapache2-mod-fcgid-dbg_2.3.6-1_amd64.deb
Checksums-Sha256:
cc56ec0fd15908015511fc7f1ee76831116badd6dfe84117f703afef4570559a 1887
libapache2-mod-fcgid_2.3.6-1.dsc
e831795498d91cf27a519ea1332c2a92a2a9920b0844d817b2ea7f079056d12b 101883
libapache2-mod-fcgid_2.3.6.orig.tar.gz
7e86c9c29648cc5b4caeed923b9a2724293613042c591d06ece26a61ce3dac70 4541
libapache2-mod-fcgid_2.3.6-1.diff.gz
409becf61407e2337b9062c317941081b6867c8cdf628afee500d42714c18733 73920
libapache2-mod-fcgid_2.3.6-1_amd64.deb
87a133dc344267d71d39e6420aa546f9b2e9dd01bfe04ea7f27aad75615a4865 13696
libapache2-mod-fcgid-dbg_2.3.6-1_amd64.deb
Files:
954adf48876faffbe695de584b336aca 1887 httpd optional
libapache2-mod-fcgid_2.3.6-1.dsc
fbfc115eb47cd9bda91269743aba5e83 101883 httpd optional
libapache2-mod-fcgid_2.3.6.orig.tar.gz
43442b90bf07dd64b4643dc3443b2375 4541 httpd optional
libapache2-mod-fcgid_2.3.6-1.diff.gz
73dbffe531656333ab504213dba24b86 73920 httpd optional
libapache2-mod-fcgid_2.3.6-1_amd64.deb
73ec115e77574e6812555b16ed86425e 13696 debug extra
libapache2-mod-fcgid-dbg_2.3.6-1_amd64.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iQIcBAEBCAAGBQJM4YcyAAoJEEDXFs/pCc3uhs8P/RfTA3Bx9UMsRdfNpXNT0acT
YxUW96a9f+g0w0LjUvQlbQZlG+tA+IevWr+9BnfUwcUnukY1NJbPwsK6DzIs4JPb
YpAKjT5187ZQBI6I+WdSe0Bn9CcNduds3M2537loRbajnS8hq4v4KpuKZkBfx0Ya
clgvhcyDG44xE+M6NajuH2ZK2PL1d7mcte4BmWrylNoVaK39PZj2AjUDb6f2sYiw
rvBE2gVfW0x9O0dkOYtUUGyqGGqB7vY8H2Waek6cG3dvbDLTtNYlb7WbPkGpmKTD
XWqhqk+xcjZHy+olZsrUufHJaFXiylyfbmSPhLl4dhTpaV6XLHTLd3mKN7kZN2aB
kpR2b4WtYVePCQF79DY37wNpfZAqVkJT5hiXWfq4q9KjytaYiAobhhBPUZR5nBYa
ZPYTJ/he11xXo2wktoH1OzE2hisg+IL1oEZXsRaOVJSUlihE5g1375QxdU+wynSS
8U5zJwRGolROqvCPUg9u4ITDzZi62RQMm6RwxwqjYtA7rd7i1nP3FaIfh561GnSd
hsjrCRvrWw7bEMj1Zc2Ckc4+IqPbODEIbOcIvMdi0fXRIw6+mJhKDyX5sdP3uDWm
79DhG0yYtTdgSFO0tXI2QATVemUxLWx3bYPY7aB3DYmGYIgEFZh5f9+bNwzEOmuO
xCt1zVbdFFTVCE6nuP6N
=KmIf
-----END PGP SIGNATURE-----
--- End Message ---