Hi Antonio,

         I'm runing 0.8.1 + php-cgi on a high load load server without that
problem.
The only difference I see is that you use a file socket, and I use a local
port one

vserver!30!rule!400!handler = fcgi
vserver!30!rule!400!handler!balancer = round_robin
vserver!30!rule!400!handler!balancer!local1!env!PHP_FCGI_CHILDREN = 50
vserver!30!rule!400!handler!balancer!local1!host = localhost:1235
vserver!30!rule!400!handler!balancer!local1!interpreter = php-cgi -b 1235
vserver!30!rule!400!handler!balancer!type = interpreter
vserver!30!rule!400!handler!change_user = 33
vserver!30!rule!400!handler!check_file = 1
vserver!30!rule!400!handler!error_handler = 0
vserver!30!rule!400!handler!pass_req_headers = 0
vserver!30!rule!400!handler!xsendfile = 0


Anyway, that happened to me when killing php-cgi by hand, because cherokee
relaunches it, and php-cgi cannot reuse the port to bind on it (they
probably
aren't using SO_REUSE), but this doesn't have sense with a file socket.

I remember that I had a similar problem with SCGI and django long time ago,
we should investigate to discover what's going wrong there.


Just for the record, my PHP version is this:

PHP 5.2.0-8+etch11 (cgi-fcgi) (built: May 10 2008 10:41:01)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2006 Zend Technologies
    with eAccelerator v0.9.5.3, Copyright (c) 2004-2006 eAccelerator, by
eAccelerator



2008/8/21 Antonio Pérez <[EMAIL PROTECTED]>

> Hi!
>
> I'm getting a lot of php-cgi zombie processes. In about 8 hours there
> were about 20 zombies in a low load web server. Once killed then, 2 or
> 3 hours ago, this is happening again:
>
> 13369 ?        Ss     0:00 SCREEN
> 13370 pts/2    Ss     0:00  \_ /bin/bash
> 13381 pts/2    S+     0:00  |   \_ cherokee-admin
> 13643 pts/2    S+     0:00  |       \_ python
> /usr/local/share/cherokee/admin/server.py 4000
> /usr/local/etc/cherokee/cherokee.conf
> 13699 ?        Ss     0:00  |           \_
> /usr/local/sbin/cherokee-guardian -C
> /usr/local/etc/cherokee/cherokee.conf
> 13700 ?        Sl     0:21  |               \_
> /usr/local/sbin/cherokee -C /usr/local/etc/cherokee/cherokee.conf
> 13908 ?        Ss     0:00  |                   \_ php-cgi -b
> /tmp/php-cgi.sock
> 13909 ?        S      0:00  |                   |   \_ php-cgi -b
> /tmp/php-cgi.sock
> 13910 ?        S      0:00  |                   |   \_ php-cgi -b
> /tmp/php-cgi.sock
> 13911 ?        S      0:00  |                   |   \_ php-cgi -b
> /tmp/php-cgi.sock
> 13912 ?        S      0:00  |                   |   \_ php-cgi -b
> /tmp/php-cgi.sock
> 13913 ?        S      0:00  |                   |   \_ php-cgi -b
> /tmp/php-cgi.sock
> 15794 ?        Z      0:00  |                   \_ [php-cgi] <defunct>
> 18715 ?        Z      0:00  |                   \_ [php-cgi] <defunct>
> 18719 ?        Z      0:00  |                   \_ [php-cgi] <defunct>
> 18768 ?        Z      0:00  |                   \_ [php-cgi] <defunct>
> 19009 ?        Z      0:00  |                   \_ [php-cgi] <defunct>
> 22054 ?        Z      0:00  |                   \_ [php-cgi] <defunct>
>
> This is my host info:
>
> 2.6.24.5-grsec-xxxx-grs-ipv4-64 #3 SMP Tue May 27 19:09:58 CEST 2008
> x86_64 GNU/Linux
>
> Cherokee 0.8.1 versión compiled from source.
>
> # php-cgi -v
> PHP 5.2.4-2ubuntu5.3 with Suhosin-Patch 0.9.6.2 (cgi-fcgi) (built: Jul
> 23 2008 06:40:13)
> Copyright (c) 1997-2007 The PHP Group
> Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
>    with XCache v1.2.1, Copyright (c) 2005-2007, by mOo
>
>
> And cherokee.conf lines about fcgi:
>
> vserver!10!rule!600!handler = fcgi
> vserver!10!rule!600!handler!balancer = round_robin
> vserver!10!rule!600!handler!balancer!local1!env!PHP_FCGI_CHILDREN = 5
> vserver!10!rule!600!handler!balancer!local1!host = /tmp/php-fcgi.sock
> vserver!10!rule!600!handler!balancer!local1!interpreter = php-cgi -b
> /tmp/php-fcgi.sock
> vserver!10!rule!600!handler!balancer!type = interpreter
> vserver!10!rule!600!handler!check_file = 1
> vserver!10!rule!600!handler!error_handler = 0
> vserver!10!rule!600!handler!pass_req_headers = 0
> vserver!10!rule!600!handler!xsendfile = 0
> vserver!10!rule!600!match = extensions
> vserver!10!rule!600!match!extensions = php
> vserver!10!rule!600!only_secure = 0
>
> I would like you help with this... Thanks in advance.
>
> --
> Saludos:
> Antonio Pérez
>
> ATENCIÓN: Antes de imprimir este mensaje valora si verdaderamente es
> necesario.
> De esta forma contribuimos a la preservación del Medio Ambiente.
> _______________________________________________
> Cherokee mailing list
> [email protected]
> http://lists.octality.com/listinfo/cherokee
>



-- 
Miguel Angel Ajo Pelayo
http://optimizacionweb.es
+34 91 120 1798
+34 636 52 25 69
skype: ajoajoajo
_______________________________________________
Cherokee mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee

Reply via email to