I updated Debian 5 today, here is the list of the updates done. I wasn't asked anything the update just went smooth. 2010-02-23 12:28:23 status half-configured php5-mcrypt 5.2.6.dfsg.1-1+lenny6 2010-02-23 12:28:23 status installed php5-mcrypt 5.2.6.dfsg.1-1+lenny6 2010-02-23 12:28:23 configure php5-imap 5.2.6.dfsg.1-1+lenny6 5.2.6.dfsg.1-1+lenny6 2010-02-23 12:28:23 status unpacked php5-imap 5.2.6.dfsg.1-1+lenny6 2010-02-23 12:28:23 status unpacked php5-imap 5.2.6.dfsg.1-1+lenny6 2010-02-23 12:28:23 status half-configured php5-imap 5.2.6.dfsg.1-1+lenny6 2010-02-23 12:28:23 status installed php5-imap 5.2.6.dfsg.1-1+lenny6 2010-02-23 12:28:23 configure php5-gd 5.2.6.dfsg.1-1+lenny6 5.2.6.dfsg.1-1+lenny6 2010-02-23 12:28:23 status unpacked php5-gd 5.2.6.dfsg.1-1+lenny6 2010-02-23 12:28:23 status unpacked php5-gd 5.2.6.dfsg.1-1+lenny6 2010-02-23 12:28:24 status half-configured php5-gd 5.2.6.dfsg.1-1+lenny6 2010-02-23 12:28:24 status installed php5-gd 5.2.6.dfsg.1-1+lenny6 2010-02-23 12:28:24 configure php5-curl 5.2.6.dfsg.1-1+lenny6 5.2.6.dfsg.1-1+lenny6 2010-02-23 12:28:21 status installed php5-recode 5.2.6.dfsg.1-1+lenny6 2010-02-23 12:28:22 configure php5-mysql 5.2.6.dfsg.1-1+lenny6 5.2.6.dfsg.1-1+lenny6 2010-02-23 12:28:22 status unpacked php5-mysql 5.2.6.dfsg.1-1+lenny6 2010-02-23 12:28:22 status unpacked php5-mysql 5.2.6.dfsg.1-1+lenny6 2010-02-23 12:28:22 status unpacked php5-mysql 5.2.6.dfsg.1-1+lenny6 2010-02-23 12:28:22 status unpacked php5-mysql 5.2.6.dfsg.1-1+lenny6 2010-02-23 12:28:22 status half-configured php5-mysql 5.2.6.dfsg.1-1+lenny6 2010-02-23 12:28:22 status installed php5-mysql 5.2.6.dfsg.1-1+lenny6 2010-02-23 12:28:22 configure php5-mcrypt 5.2.6.dfsg.1-1+lenny6 5.2.6.dfsg.1-1+lenny6 2010-02-23 12:28:22 status unpacked php5-mcrypt 5.2.6.dfsg.1-1+lenny6 2010-02-23 12:28:22 status unpacked php5-mcrypt 5.2.6.dfsg.1-1+lenny6 2010-02-23 12:28:23 status half-configured php5-mcrypt 5.2.6.dfsg.1-1+lenny6 2010-02-23 12:28:23 status installed php5-mcrypt 5.2.6.dfsg.1-1+lenny6 2010-02-23 12:28:23 configure php5-imap 5.2.6.dfsg.1-1+lenny6 5.2.6.dfsg.1-1+lenny6 2010-02-23 12:28:23 status unpacked php5-imap 5.2.6.dfsg.1-1+lenny6 2010-02-23 12:28:23 status unpacked php5-imap 5.2.6.dfsg.1-1+lenny6 2010-02-23 12:28:23 status half-configured php5-imap 5.2.6.dfsg.1-1+lenny6 2010-02-23 12:28:23 status installed php5-imap 5.2.6.dfsg.1-1+lenny6 2010-02-23 12:28:23 configure php5-gd 5.2.6.dfsg.1-1+lenny6 5.2.6.dfsg.1-1+lenny6 2010-02-23 12:28:23 status unpacked php5-gd 5.2.6.dfsg.1-1+lenny6 2010-02-23 12:28:23 status unpacked php5-gd 5.2.6.dfsg.1-1+lenny6 2010-02-23 12:28:24 status half-configured php5-gd 5.2.6.dfsg.1-1+lenny6 2010-02-23 12:28:24 status installed php5-gd 5.2.6.dfsg.1-1+lenny6 2010-02-23 12:28:24 configure php5-curl 5.2.6.dfsg.1-1+lenny6 5.2.6.dfsg.1-1+lenny6 2010-02-23 12:28:24 status unpacked php5-curl 5.2.6.dfsg.1-1+lenny6 2010-02-23 12:28:24 status unpacked php5-curl 5.2.6.dfsg.1-1+lenny6 2010-02-23 12:28:24 status half-configured php5-curl 5.2.6.dfsg.1-1+lenny6 2010-02-23 12:28:24 status installed php5-curl 5.2.6.dfsg.1-1+lenny6 2010-02-23 12:28:24 configure php-pear 5.2.6.dfsg.1-1+lenny6 5.2.6.dfsg.1-1+lenny6 2010-02-23 12:28:24 status unpacked php-pear 5.2.6.dfsg.1-1+lenny6 2010-02-23 12:28:24 status unpacked php-pear 5.2.6.dfsg.1-1+lenny6 2010-02-23 12:28:24 status half-configured php-pear 5.2.6.dfsg.1-1+lenny6 2010-02-23 12:28:24 status installed php-pear 5.2.6.dfsg.1-1+lenny6 2010-02-23 12:28:25 configure php5 5.2.6.dfsg.1-1+lenny6 5.2.6.dfsg.1-1+lenny6 2010-02-23 12:28:25 status unpacked php5 5.2.6.dfsg.1-1+lenny6 2010-02-23 12:28:25 status half-configured php5 5.2.6.dfsg.1-1+lenny6 2010-02-23 12:28:25 status installed php5 5.2.6.dfsg.1-1+lenny6 2010-02-23 12:28:25 configure php5-dev 5.2.6.dfsg.1-1+lenny6 5.2.6.dfsg.1-1+lenny6 2010-02-23 12:28:25 status unpacked php5-dev 5.2.6.dfsg.1-1+lenny6 2010-02-23 12:28:25 status half-configured php5-dev 5.2.6.dfsg.1-1+lenny6 2010-02-23 12:28:25 status installed php5-dev 5.2.6.dfsg.1-1+lenny6 The problem is I have a couple of sites running suPhp (using ISPCFG3) and all of a sudden those processes are running amok: one of the sites has 49 php-cgi processes running and it is just me accessing the backend of that particular wordpress installation :-( Do you think it could be related to these latest upgrades?
just checked the config in ISPCFG3: FastCGI Children is still set to 8 so why so many processes for a single vhost?
strange enough I see this: pstree | more init-+-acpid |-amavisd-new---2*[amavisd-new] |-apache2-+-apache2---7*[php-cgi---8*[php-cgi]] | |-11*[apache2] | |-apache2---php-cgi | `-vlogger |-clamd---{clamd} but when I open top and sort the processes by name I see more than 38 php-cgi processes running for one vhost!?
another hint: I was using eaccelerator. Had to recompile version 0.9.5.3 for this new PHP version, but this was done before these problems occured... I have disabled the eaccelerator extension for now, will see if this fixes the problem.
It was indeed eaccelerator causing the problem. I suspect the following might be happening: I'd suspect suPHP as the most likely cause. suPHP definitely prevents eAccelerator from maintaining shared memory. The swapping that I notice iis perhaps a consequence of the above. If each process allocates the same amount of (non)shared memory, the memory usage could explode pretty fast. Seeing that it was 'working' before the update, perhaps it was actually 'not working' but in a different way. Maybe the memory allocation was failing and not running out of control. I think this is pretty closely related to my other thread where I was asking about how to use different php.inis for each vhost: http://howtoforge.com/forums/showthread.php?t=41200