Monitor System Processes Using Htop Command
Monitor System Processes Using Htop Command
The whole window above can be split up into three sections for the ease of our
understanding.
The top-left section comprises the CPU and memory usage information.
The top-right section provides info about load average and uptime.
The rest of the information contains real-time data of processes with stats like
priority, CPU and memory consumption, etc.
CPU
Starting from the top left, there is a CPU line that shows the percentage of CPU being used. For a single-
core CPU, there will be one line for it. In the case of multi-core CPUs, there will be n number of lines
depending on the number of CPU cores. In any case, if the CPU percentage is near 0 marks then it means
the CPU is not having much load and if it approaches 100 for a long time, it means the CPU is under load.
Color coding of CPU usage lines: The lines indicating CPU and Memory usage have a color-coding of
CPU.
MEMORY
This part tells memory being consumed by the process running on the server; this is denoted by the
number of memory used out of total memory.
LOAD AVERAGE
It is the average of computational work performed by the CPU. 1.0 on a single core CPU would mean 100
percent utilization, similarly, 2.0 on a dual-core CPU represents 100% CPU usage.
The load average contains three values. The first number is a minute average (0.00 in the figure above),
the second number is 5 minutes average (0.01 in the above figure) while the third number is fifteen
minutes average (0.05 in the figure).
PROCESS INFORMATION
The information below shows the information about processes running on your server.
HTOP FOOTER
The htop footer contains its menu command.
These commands can be used to do various functions for e.g. F6 Sort By can be used to
CONCLUSION
In a nutshell, htop is a useful command-line tool in the Linux environment to determine the
cause of load by each process. It is similar to Task Manager in the Windows OS environment. It
can be used to troubleshoot and kill a process that is utilizing excessive server resources.