Thread: php eating cpu
View Single Post
  #16  
Old 15th August 2007, 01:19
shajazzi shajazzi is offline
Senior Member
 
Join Date: Dec 2005
Posts: 125
Thanks: 2
Thanked 3 Times in 3 Posts
Default

OK,
I have changed to Debian and all is well.
I have found the problem, it seems that my server was being hit with a lot of mail at 23.59 hrs so i changed the lines in cron from

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

to

57 23 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/ftp_logs.php &> /dev/null
57 23 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/mail_logs.php &> /dev/null
57 23 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/cleanup.php &> /dev/null

All has been working OK for the last 2 weeks. It seem that spam is hitting my mail boxes at 23.59 hrs every evening causing heavy php useage and my server seems to get stuck in a stagnant loop.

shajazzi
Reply With Quote