ispCP - Board - Support
/usr/bin/php5-cgi processes dont get killed - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: Usage (/forum-34.html)
+--- Thread: /usr/bin/php5-cgi processes dont get killed (/thread-12797.html)



/usr/bin/php5-cgi processes dont get killed - xchrix - 02-01-2011 05:07 AM

hello

since 3 weeks i have the problem that my php5-cgi processes dont get killed. they need 100% of my RAM. when i stop apache2 some of them get killed but the most of them keep alive. when i run "killall /usr/bin/php5-cgi" its fine again.

does anybody know why they dont get killed by apache restart? in htop i see some processe in the tree of apache2. thats ok but the other are not in this tree. i have attached an screenshot. you see i dont have much RAM Wink so i need every bit of it!

thanks for your help!


RE: /usr/bin/php5-cgi processes dont get killed - shaggy - 02-03-2011 04:17 PM

I have a lot of apache2 -k starts reading

PID User PRI|NI|VIRT|RES SHR S CPU% MEM% TIME+ Command
15555 www-data 20 |0|224M |4924 1376 S 0.0 0.4 0:00.00 /usr/sbin/apache2 -k start

thats in there a total of 57 times

I have 3 on the php5-cgi

and 18 records reading
29999 mysql 20 0 154M 19520 5848 S 0.0 1.6 0:00.00 /user/sbin/mysqld

on all records the +time section is different on each (eg one record is 0:00.00 and another is 1:20.56)

what is causing the multiple proccesses of the same item? I have 4gb ram and it's using almost 90%


RE: /usr/bin/php5-cgi processes dont get killed - xchrix - 02-03-2011 05:33 PM

you have to change the mpm worker or mpm prefork settings in the apache.conf
nano /etc/apache2/apache2.conf

there are config sections like StartServers, MinSpareThreads and so on.
decrease these values!
search for "run ispcp on low resource machine"