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 Answer 1

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

2
  • 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. Commented Jul 9, 2018 at 14:08
  • @Kusalananda YES. you are right. Commented Jul 9, 2018 at 14:10

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.