Current time: 11-13-2024, 05:23 PM Hello There, Guest! (LoginRegister)


Post Reply 
/usr/bin/php5-cgi processes dont get killed
Author Message
xchrix Offline
Junior Member
*

Posts: 20
Joined: Apr 2008
Reputation: 0
Post: #1
/usr/bin/php5-cgi processes dont get killed
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!


Attached File(s) Thumbnail(s)
   
02-01-2011 05:07 AM
Find all posts by this user Quote this message in a reply
shaggy Offline
Junior Member
*

Posts: 32
Joined: Jan 2011
Reputation: 0
Post: #2
RE: /usr/bin/php5-cgi processes dont get killed
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%
02-03-2011 04:17 PM
Find all posts by this user Quote this message in a reply
xchrix Offline
Junior Member
*

Posts: 20
Joined: Apr 2008
Reputation: 0
Post: #3
RE: /usr/bin/php5-cgi processes dont get killed
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"
02-03-2011 05:33 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)