High load server - help needed

Hi,

Last few days morning my server load is going up.

I have high traffic PHP and MySQL site on the server. Server is AMD Athlon 2400 with 512 MB RAM. Normal load is below 1, but at morning time, it goes above 5. Some times it goes up and hang if i don't give a reboot or httpd and mysql service restarts.

I know it is time for getting a FAST server. But it take few days. How do i prevent the server from running away ? Modifying httpd.conf will help ?

Can anyone help me in optimizing httpd.conf

My httpd.conf is available at

http://www.netfreehost.com/httpd.conf.txt

I need a temporary solution to keep my server up for few more days, then i will be getting new server.

Regards,

Yujin



14:39:12 up 2:36, 1 user, load average: 23.19, 10.87, 5.53
182 processes: 181 sleeping, 1 running, 0 zombie, 0 stopped
CPU states: cpu user nice system irq softirq iowait idle
total 0.5% 0.0% 4.3% 0.0% 0.0% 0.0% 95.0%
Mem: 449860k av, 445548k used, 4312k free, 0k shrd, 11844k buff
219596k active, 207768k inactive
Swap: 1052248k av, 415632k used, 636616k free 11664k cached

PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND
15677 mysql 15 0 21748 7700 2592 S 1.1 1.7 0:02 0 mysqld
5 root 15 0 0 0 0 SW 0.9 0.0 0:16 0 kswapd
15591 root 16 0 5260 3648 3620 S 0.5 0.8 7:25 0 httpd
19413 root 16 0 1188 1168 812 R 0.5 0.2 0:07 0 top
20368 root 15 0 1336 1116 1024 S 0.1 0.2 0:00 0 pure-ftpd
21754 root 15 0 1280 1272 1004 S 0.1 0.2 0:00 0 pure-ftpd
1 root 16 0 412 380 364 S 0.0 0.0 0:05 0 init
2 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 keventd
3 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 kapmd
4 root 34 19 0 0 0 SWN 0.0 0.0 0:00 0 ksoftirqd/0
6 root 25 0 0 0 0 SW 0.0 0.0 0:00 0 bdflush


 

 

 

 

Top