1

I have a CentOS server where I'm running the top command, I can see that the process top utilize 100% CPU.

enter image description here

1

top command will read /var/run/utmp file to get active user number. if the file is too large to read. top spends more time to read it that may occupy 100% CPU usage. reduce utmp size, the top command won't occupy much CPU usage

  • 1
    It also depends on what time interval the command uses to refresh its status display. Setting it to 0 will easily make it use 100% of CPU. – Kusalananda Jul 9 '18 at 14:08
  • @Kusalananda YES. you are right. – msp9011 Jul 9 '18 at 14:10

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.