I am experiencing 25% CPU usage on a ubuntu 14.04.03 server which is supposed to be idle. According to htop, load is about 1.0 while the underlying proccess all show 0 to nothing of CPU load.

There are no special services running as I stoped all of them to identify the cause. The high CPU consumption now holds for over 24 hours.

How can I determine the process and fix this issue?

This is a screen shot of htop:

Ubuntu htop

This is a screen shot of top, showing Zookeeper to be responsible for it:

enter image description here

  • Where did you get that 25%? – Pilot6 Sep 18 '15 at 11:36
  • This is an estimate. It is eating significant CPU as you see on the load and the cpu bars. It runns along with 2 other nodes on a MacBook Pro Host within Virtualbox. The other 2 hosts have 0 CPU, while this one causes the Macbook to have about 25% of its CPU dedicated to the VM instance. – merlin Sep 18 '15 at 11:39
  • Now that you found out what process causes the load, you could maybe research a bit yourself what this zookeeper usually does and edit your answer to include this information... – Byte Commander Sep 18 '15 at 12:13

htop is lying. It displays average. CPU is not a pipe and can not be filled to some extent. It is either working on some frequency or not at all. You can only talk about load value if it is consistent. If it is not, the simple math does not work. An average of four measures: 0 0 100 0 - is 25, but it does not mean that something is using 25% of CPU power. It means something has started, did its job and quit.

  • You are right, "top" has identified zookeeper as the 25% Process. Now the remaining question is... why?! – merlin Sep 18 '15 at 11:58
  • 1
    watch your io, e.g. with iotop – A.B. Sep 18 '15 at 12:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.