CPU load

Post Reply
Ricky B
Posts: 78
Joined: Sat Nov 24, 2012 12:39 am

CPU load

Post by Ricky B »

i have 20 cron job in a sh file with a 3 second sleep between each cron job, and i run this script every 3 minutes because my cpu load and the job have not the time to finish. I know i need to start the job every minutes but i will crash my server.

i see some process who grab the cpu for couple time and make a high load on my server

/usr/bin/php preload_process.php id=994075
/usr/bin/php preload_process.php id=324325

how can i help my server? its a quad core with 8 gb ram (Load Averages: 9.38 11.16 10.50)
kenhirai
Posts: 330
Joined: Wed Jan 02, 2013 4:25 am

Re: CPU load

Post by kenhirai »

I had 90 sites, but disabled cron and rot.php just using their basic custom gallery functions and thats it. If u wanna use the software in full protential, u need to buy better server. Remember to get Raids 1, reason why it crashes your server is the software does alot of writing per second. Everything takes up CPU and loads the disk. Therefore, find yourself a more powerful box and that will solve your problem.
admin
Site Admin
Posts: 38004
Joined: Wed Sep 10, 2008 11:43 am

Re: CPU load

Post by admin »

Do you use php GD or imagemagick as image processing library ?
Don't forget to run script update
Ricky B
Posts: 78
Joined: Sat Nov 24, 2012 12:39 am

Re: CPU load

Post by Ricky B »

I use image GD, do you suspect a problem in the config of the php module?
admin
Site Admin
Posts: 38004
Joined: Wed Sep 10, 2008 11:43 am

Re: CPU load

Post by admin »

GD creates more load then IM
I suggest you to use IM
Don't forget to run script update
Post Reply