|
Haven't registered yet? Do it here now!
|
polosas
Joined: 15 Nov 2007 Posts: 116
|
|
|
|
|
|
|
Posted: Sat Jan 16, 2010 10:16 am Post subject: BO is using too much server resources |
|
|
|
|
|
|
|
|
|
|
Hi,
is it have to be like this ? it uses half of server memory and 30% of cpu processes.
why is that so much ? how to reduce server resources usage ? _________________
|
|
|
|
|
|
|
|
Atanasis Owner
Joined: 22 May 2004 Posts: 4284 Location: The Net
|
|
|
|
|
|
|
Posted: Mon Jan 18, 2010 10:44 am Post subject: |
|
|
|
|
|
|
|
|
|
|
it uses it just for few seconds while processing the borssfeeder.php cronjob right? Well, thats normal since php requires cpu when making connections to other sites and the memory is used for example if you have assigned like 10 feeds per blog, script need to download and process them all at once.
However as i said thats just a spike for some seconds while the cronjob completes, it is not constant or something to worry about. I have 4 copies of BO on my server and server isn't loaded at all _________________ Thanks,
Kaktusan
|
|
|
|
|
|
|
|
|
|
|
polosas
Joined: 15 Nov 2007 Posts: 116
|
|
|
|
|
|
|
Posted: Mon Jan 18, 2010 11:05 am Post subject: |
|
|
|
|
|
|
|
|
|
|
the problem is that last time i got bunch of email saying that:
public_html/bo/borposter.php
Already Running
Already Running
then
Query to MySQL Failed: MySQL server has gone away
Already Running
Query to MySQL Failed: MySQL server has gone away
Already Running
Already Running
they all came in 20 minutes
then after that i got:
Query to MySQL Failed: MySQL server has gone away
Query to MySQL Failed: MySQL server has gone away
Query to MySQL Failed: MySQL server has gone away
Already Running
Already Running
Already Running
Already Running
Already Running
Already Running
Already Running
sh: line 0: kill: (30533) - No such process
they all came in 25 minutes.
and when i check cpu usage of BO cron it takes :
today:
Top Process %CPU 71.0 /usr/local/bin/php /home/anddonec/public_html/bo/borssfeeder.php
Top Process %CPU 53.0 /usr/local/bin/php /home/anddonec/public_html/bo/borssfeeder.php
Top Process %CPU 28.0 /usr/local/bin/php /home/anddonec/public_html/bo/borssfeeder.php
Yesterday:
Top Process %CPU 100 /usr/local/bin/php /home/anddonec/public_html/bo/borssfeeder.php
Top Process %CPU 46.0 /usr/local/bin/php /home/anddonec/public_html/bo/borssfeeder.php
Top Process %CPU 30.0 /usr/local/bin/php /home/anddonec/public_html/bo/borssfeeder.php _________________
|
|
|
|
|
|
|
|
Atanasis Owner
Joined: 22 May 2004 Posts: 4284 Location: The Net
|
|
|
|
|
|
|
Posted: Tue Jan 19, 2010 8:53 pm Post subject: |
|
|
|
|
|
|
|
|
|
|
are you getting all this in one email or in separate ones? Because there should be only one instance of borssfeedr.php and borposter.php running at once. there can't be several ones, because there's a lock protection.. _________________ Thanks,
Kaktusan
|
|
|
|
|
|
|
|
polosas
Joined: 15 Nov 2007 Posts: 116
|
|
|
|
|
|
|
Posted: Tue Jan 19, 2010 9:09 pm Post subject: |
|
|
|
|
|
|
|
|
|
|
i get them in separate emails but they came one after another. _________________
|
|
|
|
|
|
|
|
Atanasis Owner
Joined: 22 May 2004 Posts: 4284 Location: The Net
|
|
|
|
|
|
|
Posted: Tue Jan 19, 2010 9:28 pm Post subject: |
|
|
|
|
|
|
|
|
|
|
ok, did some mods to the script to prevent some of these error messages you get. Watch it from now and let me know what you get again.. you now should be getting only "Already Running" from time to time, since sometimes the script might not get completed within a minute when the next run occures and exits with that warning message.. _________________ Thanks,
Kaktusan
|
|
|
|
|
|
|
|
polosas
Joined: 15 Nov 2007 Posts: 116
|
|
|
|
|
|
|
Posted: Tue Jan 19, 2010 9:33 pm Post subject: |
|
|
|
|
|
|
|
|
|
|
i run it in 5 minutes period. because 2 years ago i was running it 1 minute period and server was crashing. _________________
|
|
|
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2002 phpBB Group
|
|
|
|
| |