Cpu usage bogging down server


#1

Something seems to be hogging up the cpu on my shared server and slowing things down. Here is a grab from top. My processes are using 1% and thats from top. Is this some rogue process that needs to be killed? Is this acceptable? Does such usage get monitored regularly?

Cpu(s): 86.3%us, 11.3%sy, 1.8%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.6%si, 0.0%st
Mem: 32959040k total, 32457856k used, 501184k free, 326916k buffers
Swap: 3998712k total, 572520k used, 3426192k free, 12908796k cached
[hr]
By the way here is the per cpu grab. The server is bartow

Cpu0 : 86.9%us, 3.7%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.0%hi, 9.3%si, 0.0%st
Cpu1 : 93.4%us, 6.6%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu2 : 88.8%us, 10.3%sy, 0.9%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu3 : 82.2%us, 15.0%sy, 2.8%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu4 : 82.1%us, 15.1%sy, 2.8%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu5 : 73.8%us, 22.4%sy, 3.7%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu6 : 93.5%us, 6.5%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu7 : 84.4%us, 11.9%sy, 3.7%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st


#2

CPU @ 100% is not a big deal and the Memory usage looks “normal” for a shared server.

Check the load averages (~ uptime) instead.


#3

Well I’ll have to do some more comparisons but when cpu% is not maxed my web server returns a response with round trip of around 300-400ms. When responses get laggy (with responses from 2-15 seconds) it seems to be correlated with cpu being maxed.