hallleron hallleron - 1 year ago 58
Bash Question

Linux Webserver - htop shows extreme cpu usage?

I am a bit confused about what the tool "htop" shows as cpu usage and average load. I was asked to have a look at a webserver which is performing incredibly slow.
I googled a bit and always found the statement that everyting above 1.00 in average load is terrible when you only have one cpu in the machine.

However, my "htop" experience looks like this:
htop screenshot

Can someone please tell me what exactly is going on here? Is this bad or do I misunderstand everything?

Thank you for your help.

Answer Source

In your screenshot the CPU usage bars are colored in green and red. Press '?' in htop for a help screen to show up. From there you will see that green color is for a normal priority userspace applications CPU usage and the red color is for kernel threads.

Basically, in your screenshot all the CPU cores are 100% busy and most of the time they spend in the kernel.

Yes, this is bad. Further investigation is needed to tell what exactly is going on here.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download