Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #21  
Old 27th March 2007, 01:11
jameso jameso is offline
Member
 
Join Date: Nov 2006
Posts: 31
Thanks: 2
Thanked 2 Times in 2 Posts
Default

Great - thanks for that.

Upon looking at my server this morning, the server load has jumped up high once again.

At approximately midnight the load jumped from 0.1 to over 3, and has stayed like that for the next 7 hours so far. Once agian, PHP is consuming 34% CPU.

The attached image demonstrates this.

Any ideas as to what could be causing this to happen?

My crontab file is as follows:
Code:
30 00 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/logs.php &> /dev/null
59 23 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/ftp_logs.php &> /dev/null
59 23 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/mail_logs.php &> /dev/null
59 23 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/cleanup.php &> /dev/null
0 4 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/webalizer.php &> /dev/null
0,30 * * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/check_services.php &> /dev/null
15 3,15 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/quota_msg.php &> /dev/null
40 00 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/traffic.php &> /dev/null
05 02 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/backup.php &> /dev/null
0 7,19 * * * php /root/mysql_backup/mysql_backup.php >/dev/null 2>&1

Thanks in advance.
Attached Images
 
Reply With Quote
Sponsored Links
  #22  
Old 27th March 2007, 16:09
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Can you see in the output of
Code:
top
and
Code:
ps aux
if it is a specific PHP process that causes the high load?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #23  
Old 27th March 2007, 16:27
jameso jameso is offline
Member
 
Join Date: Nov 2006
Posts: 31
Thanks: 2
Thanked 2 Times in 2 Posts
Default

Hi Falko,

I have investigated each of the cron jobs, and run each one manually. All run quite quickly, except the /root/ispconfig/scripts/shell/mail_logs.php cron job.

It is scheduled to run at 11:59pm each night, and as far as I can tell keeps looping through, and (possibly) never finishes.

The output is:
Code:
/root/ispconfig/php/php /root/ispconfig/scripts/shell/mail_logs.php

Warning: feof(): supplied argument is not a valid stream resource in /root/ispcoonfig/scripts/shell/mail_logs.php on line 115

Warning: fgets(): supplied argument is not a valid stream resource in /root/ispconfig/scripts/shell/mail_logs.php on line 114

Warning: feof(): supplied argument is not a valid stream resource in /root/ispcoonfig/scripts/shell/mail_logs.php on line 115

Warning: fgets(): supplied argument is not a valid stream resource in /root/ispconfig/scripts/shell/mail_logs.php on line 114
The PHP errors keep repeating, and I ended up cancelling the PHP script manually because it never seemed to finish.

This part of the php script is referring to files inside /home/admispconfig/mailstats/. Somehow this seems to be causing the error.

I have disabled this individual cron job, and will see tomorrow morning if the server load is high again over night.

If the load is high again in the morning I will post the output of those two commands.
Reply With Quote
  #24  
Old 28th March 2007, 00:31
jameso jameso is offline
Member
 
Join Date: Nov 2006
Posts: 31
Thanks: 2
Thanked 2 Times in 2 Posts
 
Default

Well, disabiling the mail_logs.php cron job seems to have prevented the server load from increasing during the night. The load is currently at 0.2.

I have started a new thread discussing the performance of this cron job.

Thanks everyone for your help!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
php Apps email not going through palkat General 8 21st September 2011 05:35
Statistic not working mzo Installation/Configuration 49 20th April 2011 12:19
Apache2 Freezes celtic Server Operation 31 28th May 2007 17:18
php script injections Grizzly General 21 18th July 2006 08:55
The Perfect Setup Suse 9.3 - Postfix problems new_bee05 HOWTO-Related Questions 20 25th November 2005 02:30


All times are GMT +2. The time now is 10:44.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.