What should I upgrade Ram or Cpu ?

What do u recomand me to upgrade ?
This high load is now because today we have a very visited sited, (e-cards)
I was thinking to add more ram, but I don't know if not the procesor should be upgraded to.

15:37:37 up 6 days, 16:43, 1 user, load average: 9.31, 11.88, 13.86
203 processes: 180 sleeping, 18 running, 2 zombie, 3 stopped
CPU states: cpu user nice system irq softirq iowait idle
total 77.0% 0.0% 22.9% 0.0% 0.0% 0.0% 0.0%
Mem: 512704k av, 499888k used, 12816k free, 0k shrd, 25152k buff
208728k active, 251596k inactive
Swap: 1052216k av, 112660k used, 939556k free 187876k cached

PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND
2500 root 4 0 5116 4876 4748 S 54.1 0.9 2:08 0 httpd
3034 mysql 9 0 25728 24M 1772 S 7.4 4.8 0:09 0 mysqld
30863 root 17 0 776 772 580 R 5.7 0.1 0:03 0 grep

output of the sar command

01:20:01 PM CPU %user %nice %system %idle
01:30:01 PM all 80.21 0.00 19.07 0.72
01:40:00 PM all 80.83 0.01 18.58 0.58
01:50:00 PM all 78.29 0.00 17.14 4.57
01:59:59 PM all 76.33 0.00 16.39 7.28
02:10:00 PM all 76.76 0.00 16.68 6.55
02:20:00 PM all 80.79 0.00 19.08 0.12
02:30:01 PM all 81.56 0.00 18.35 0.09
02:40:00 PM all 78.93 0.00 17.60 3.47
02:50:01 PM all 79.39 0.00 17.93 2.68
03:00:01 PM all 78.86 0.03 16.96 4.15
03:10:02 PM all 81.23 0.00 17.47 1.30
03:20:01 PM all 81.17 0.00 18.67 0.16
03:30:00 PM all 81.20 0.00 18.52 0.28
03:40:00 PM all 81.35 0.00 18.33 0.32
03:50:01 PM all 81.02 0.01 17.47 1.49
Average: all 49.86 0.13 10.99 39.02

 

 

 

 

Top