I have a CentOS server where I'm running the top command, I can see that the process top utilize 100% CPU.
1 Answer
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
-
1It also depends on what time interval the command uses to refresh its status display. Setting it to
0will easily make it use 100% of CPU.2018-07-09 14:08:03 +00:00Commented Jul 9, 2018 at 14:08 -
@Kusalananda YES. you are right.Siva– Siva2018-07-09 14:10:36 +00:00Commented Jul 9, 2018 at 14:10
