Current time: 11-25-2024, 06:07 PM Hello There, Guest! (LoginRegister)


Post Reply 
High load on ispcp server
Author Message
macbishop Offline
Junior Member
*

Posts: 68
Joined: Feb 2007
Reputation: 7
Post: #31
RE: High load on ispcp server
psygarden Wrote:According to this changelog that bug has been fixed in php 5.2.5

http://www.php.net/ChangeLog-5.php

Can anyone confirm this? I'm going to test now...

The bug was fixed in 5.2.2 version (03-May-2007)

Fixed bug #40286 (PHP fastcgi with PHP_FCGI_CHILDREN don't kill children when parent is killed). (Dmitry)
01-27-2008 08:07 AM
Find all posts by this user Quote this message in a reply
psygarden Offline
Junior Member
*

Posts: 84
Joined: Jan 2008
Reputation: 0
Post: #32
RE: High load on ispcp server
macbishop Wrote:
psygarden Wrote:According to this changelog that bug has been fixed in php 5.2.5

http://www.php.net/ChangeLog-5.php

Can anyone confirm this? I'm going to test now...

The bug was fixed in 5.2.2 version (03-May-2007)

Fixed bug #40286 (PHP fastcgi with PHP_FCGI_CHILDREN don't kill children when parent is killed). (Dmitry)

upgrading from php 5.2.0 to 5.2.5 has this result on my cpu loads:

   
The last bit of the graph shows the cpu usage while the server is under a normal load with all sites active.

So it turns out that all that one needs to do on a debian system is update the /etc/apt/sources.list to include the "testing" versions of php5
Quote:#Old sources that came with the default install of my hosting company:
#deb http://ftp.freenet.de/debian/ etch main non-free contrib
#deb-src http://ftp.freenet.de/debian/ etch main non-free contrib

#new sources including all versions.
deb http://packages.dotdeb.org etch all
deb-src http://packages.dotdeb.org etch all

Then run

#apt-get update
and
#apt-get upgrade

After installation is complete you can kill all the stuck child processes using

php4:
Quote:/usr/bin/killall -HUP php-cgi

php5:
Quote:/usr/bin/killall -HUP php5-cgi
(This post was last modified: 01-28-2008 09:22 AM by psygarden.)
01-27-2008 09:21 AM
Visit this user's website Find all posts by this user Quote this message in a reply
rbtux Offline
Moderator
*****
Moderators

Posts: 1,847
Joined: Feb 2007
Reputation: 33
Post: #33
RE: High load on ispcp server
you have a little typo there:
Quote:2.5.0 to 2.5.2
01-28-2008 12:58 AM
Visit this user's website Find all posts by this user Quote this message in a reply
BioALIEN Offline
Public Relations Officer
*****
Dev Team

Posts: 620
Joined: Feb 2007
Reputation: 5
Post: #34
RE: High load on ispcp server
psygarden: interesting find, your CPU has really dropped a lot since the php upgrade. Can you please keep us posted after you run this for a week and report back?

Thanks
(This post was last modified: 01-28-2008 12:08 PM by BioALIEN.)
01-28-2008 12:07 PM
Find all posts by this user Quote this message in a reply
psygarden Offline
Junior Member
*

Posts: 84
Joined: Jan 2008
Reputation: 0
Post: #35
RE: High load on ispcp server
BioALIEN Wrote:psygarden: interesting find, your CPU has really dropped a lot since the php upgrade. Can you please keep us posted after you run this for a week and report back?

Thanks

I think it's already conclusive, my server hasn't had any problems since i upgraded to php 5.2.5 (compared to continuous high load on 5.2.0)

here's an updated graphic of my cpu usage (the current value might seem very low, but that's because it's a brand new dual core amd 5800+ cpu... it should be that way Tongue )

   
(Click to view larger image)
01-28-2008 08:23 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Kika Offline
Member
***

Posts: 293
Joined: Feb 2007
Reputation: 8
Post: #36
RE: High load on ispcp server
I had this problem too. I upgraded my php to a dotdeb 5.2.5 (http://www.dotdeb.org/) and my system is working fine.
01-29-2008 01:43 AM
Find all posts by this user Quote this message in a reply
raphael Offline
Member
***

Posts: 474
Joined: Apr 2007
Reputation: 8
Post: #37
RE: High load on ispcp server
Quote:psygarden: interesting find, your CPU has really dropped a lot since the php upgrade. Can you please keep us posted after you run this for a week and report back?
the thing is that the bug was fixed in 5.2.5; I've tried to get a diff from sapis/cgi we could ship in +etch11 but it seems to be too intrusive. I'll anyway build some of those packages for you people to test and report. Hopefully this way it will be fixed by etch r3
01-29-2008 01:58 AM
Visit this user's website Find all posts by this user Quote this message in a reply
BioALIEN Offline
Public Relations Officer
*****
Dev Team

Posts: 620
Joined: Feb 2007
Reputation: 5
Post: #38
RE: High load on ispcp server
raphael, any news on your last post? I would like to resolve this, and I'm willing to give your packages a try.

Right now I'm on PHP 5.2.0-8+etch10 and after a few days, the server load really shoots through the roof very similar to psygarden's screenshot. After a full server restart, everything falls back down to a reasonable level then the process repeats after 10 days or so.
02-03-2008 01:30 PM
Find all posts by this user Quote this message in a reply
Kika Offline
Member
***

Posts: 293
Joined: Feb 2007
Reputation: 8
Post: #39
RE: High load on ispcp server
I upgraded the php, but i use a script witch restart the webserver when the load is higher than 1:

Code:
#!/bin/bash
L05="$(uptime|awk '{print $(NF-2)}'|cut -d. -f1)"
if test $L05 -gt 1
then
killall -9 php5-cgi
/etc/init.d/apache2 restart
fi

Insert this line to the crontab:
* * * * * root /root/load.sh
02-04-2008 10:41 PM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #40
RE: High load on ispcp server
And this does make sense ?
Well, it is not a really fix and when a other app create the high load averge ?
Your Apache will restart and restart and restart.

Greez BeNe
02-04-2008 11:02 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


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