Have just moved my moodle 1.5 into the production environment and am having huge issues with CPU usage maxing out with only 15+ logins.
My specs:
Dell PowerEdge 1600SC Rack Mount
- Inetl Xeon 3.2GHz 1Mb Cache
- 2Gb RAM
- 73Gb Ultra 360 HD in RAID 1 config
Mandrake Linux 10 OS
Apache 2 webserver v2.0.50
PHP v4.3.8
MySQL v4.0.18
Symptoms
I am new to server admin and am unsure as to where I should start looking.
1. Server runs fine with very small load. Last friday had 30 teachers log in and server CPU went to 98% usage. Most got the error:
"Error: Database connection failed.
It is possible that the database is overloaded or otherwise not running properly."
I am assuming this is due to my server CPU maxing out.
2. Used top in unix and am having issues identifying where my CPU load is being generated from . The httpd requests were running at 5% and the other 90% of CPU didn't seem to be listed as being used by any other process.
3. Not sure if this is related. Taking forever (5+ seconds to load pages in IE but Firefox loads fast)
Settings
Langcahe is on
Langmenu is off
dbsessions are off
------------------------------------------------------------------------
Any suggestions in how to properly diagnose this are more than welcomed