| Author |
Message |
sbanawan
Joined: 11 Jun 2009
Posts: 1
|
| Posted: Thu Jun 11, 2009 7:16 am Post subject: CPU spikes? |
|
|
I don't know what's going on with my server but periodically, the server CPU will spike and require a reboot.
I'm running Drupal 6 - which means PHP and mySQL. Postfix/Dovecot is also install, both via webmin.
I'm new to this VPS business, so any help would be appreciated. |
|
| Back to top |
|
xado
Joined: 31 May 2009
Posts: 12
|
| Posted: Thu Jun 11, 2009 7:40 am Post subject: |
|
|
Did you take a look at this thread ?
http://www.linode.com/forums/viewtopic.php?t=4283 |
|
| Back to top |
|
hybinet
Joined: 02 May 2008
Posts: 1058
|
| Posted: Thu Jun 11, 2009 8:00 am Post subject: |
|
|
Most of the time, CPU spikes like that are caused by having too many Apache processes/threads.
MySQL is also a memory hog but it usually won't exceed a certain limit, especially when you use the Debian/Ubuntu default config with the moderately low buffer settings. Apache, on the other hand, tends to get out of hand very easily in its default settings. You need to cut down on the number of processes/threads/max-clients or it will crash your server whenever there's a bit of traffic.
Even better solution:
http://www.lighttpd.net/
http://nginx.org/ |
|
| Back to top |
|
| |