Re: zombie fastcgi threads

Daniel Lo <[email protected]>
Newsgroups gmane.comp.web.fastcgi.devel,gmane.spam.detected
Message-ID <[email protected]>
Hello Kurt,

You may want to check to make sure people or someone is not setting
(http://us.php.net/set_time_limit) to zero and then doing something lengthy

-daniel


Thursday, April 9, 2009, 3:34:19 PM, you wrote:

> Hello,

>  

> I'm currently have a problem with a large number of zombie fastcgi threads
> accumulating and causing all virtual hosts to become unavailable.  The
> only way to resolve the problem is to either reboot the server or stop
> Apache and manually kill off the zombie processes.

>  

>>From what I've read this is the exception and not the rule so I'd very
> much appreciate any ideas or suggestions on what I may be doing wrong.
> I'm hoping it's something obvious that I'm just not seeing.

>  

> If you need any further information please let me know.

>  

> Thanks,

>  

> Kurt Bolko

> Systems Consultant

> W.A.C. Bennett Library

>  

> The configuration is as follows,

> RHEL 4

> Mod_FastCGI 2.4.0

> PHP 5.1.6 - './configure' '--build=i686-redhat-linux-gnu'
> '--host=i686-redhat-linux-gnu' '--target=i386-redhat-linux-gnu'
> '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr'
> '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc'
> '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib'
> '--libexecdir=/usr/libexec' '--localstatedir=/var'
> '--sharedstatedir=/usr/com' '--mandir=/usr/share/man'
> '--infodir=/usr/share/info' '--cache-file=../config.cache'
> '--with-libdir=lib' '--with-config-file-path=/etc'
> '--with-config-file-scan-dir=/etc/php.d' '--disable-debug' '--with-pic'
> '--disable-rpath' '--without-pear' '--with-bz2' '--with-curl'
> '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr'
> '--with-png-dir=/usr' '--enable-gd-native-ttf' '--without-gdbm'
> '--with-gettext' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr'
> '--with-openssl' '--with-png' '--with-pspell' '--with-expat-dir=/usr'
> '--with-pcre-regex=/usr' '--with-zlib' '--with-layout=GNU' '--enable-exif'
> '--enable-ftp' '--enable-magic-quotes' '--enable-sockets'
> '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg'
> '--enable-track-vars' '--enable-trans-sid' '--enable-yp' '--enable-wddx'
> '--with-kerberos' '--enable-ucd-snmp-hack' '--with-unixODBC=shared,/usr'
> '--enable-memory-limit' '--enable-shmop' '--enable-calendar'
> '--enable-dbx' '--enable-dio' '--with-mime-magic=/etc/httpd/conf/magic'
> '--without-sqlite' '--with-libxml-dir=/usr' '--with-xml'
> '--enable-force-cgi-redirect' '--enable-pcntl' '--with-imap=shared'
> '--with-imap-ssl' '--enable-mbstring=shared' '--enable-mbstr-enc-trans'
> '--enable-mbregex' '--with-ncurses=shared' '--with-gd=shared'
> '--enable-bcmath=shared' '--enable-dba=shared' '--with-db4=/usr'
> '--with-xmlrpc=shared' '--with-ldap=shared' '--with-mysql=shared,/usr'
> '--with-mysqli=shared,/usr/bin/mysql_config' '--enable-dom=shared'
> '--with-dom-xslt=/usr' '--with-dom-exslt=/usr' '--with-pgsql=shared'
> '--with-snmp=shared,/usr' '--enable-soap=shared' '--with-xsl=shared,/usr'
> '--enable-xmlreader=shared' '--enable-xmlwriter=shared' '--enable-fastcgi'
> '--enable-pdo=shared' '--with-pdo-odbc=shared,unixODBC,/usr'
> '--with-pdo-mysql=shared,/usr' '--with-pdo-pgsql=shared,/usr'
> '--with-pdo-sqlite=shared'

> Apache 2.0.59

>  

> Httpd.conf - 

> <IfModule mod_fastcgi.c>

>         FastCgiIpcDir /tmp/fcgi_ipc

>         FastCgiWrapper /usr/sbin/suexec

>         FastCgiConfig -idle-timeout 3000 -startDelay 30 -maxClassProcesses
> 20 -m

> axProcesses 75

> </IfModule>

>  

> Virtualhost.conf - 

> <VirtualHost *:8081>

>        SuexecUserGroup user1 user1

>        ScriptAlias /php-fastcgi/ /var/www/user1/fcgi-bin/

>        Action application/x-httpd-fastphp /php-fastcgi/php-fcgi

>        DocumentRoot /var/www/user1

>        <Directory "/var/www/user1/fcgi-bin">

>                Options ExecCGI

>                SetHandler fastcgi-script

>        </Directory>

> </VirtualHost>

>  

> FastCGI wrapper -

> #!/bin/sh

> PHP_FCGI_MAX_REQUESTS=1000

> export PHP_FCGI_MAX_REQUESTS

> exec /usr/bin/php-cgi




-- 
Best regards,
 Daniel                            mailto:[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.