Interactive command-line monitoring tool for CPU, memory, disks, network, NFS, and virtual memory utilization. You can use the ps command with PID to print their CPU and memory utilization. If you are just interested in real-time troubleshooting, then just execute atop and you should see like below. and I would strongly recommend taking a look at the man page. It supports multiple arguments like interval, samples, etc. To record the output in a file: atop -w filename You can schedule to write the output in a file through crontab or other, and later you can playback. Imagine there is a pattern of having an issue at a specific time window.
#Ubuntu hardware monitor install#
dnf install glancesįor CentOS7, you can use YUM yum install glances atopĪ similar to the above listed but with a brilliant feature to record the output in a file so you can view them later. You can install glances on CentOS 8 using DNF as below. Running processes are sorted by their CPU utilization. Install htop on Ubuntu apt-get install htop Install htop on CentOS/RHEL 8.x dnf install Īs the name says, you get a system utilization view on a single screen. Htop may not be installed by default, but you can always do it as below. As you can, it got the command column, which is handy to identify the process path. Similar to the top but with more information. Below an example of checking Docker utilization. Tasks: 1 total, 0 running, 1 sleeping, 0 stopped, 0 zombie Let’s say you know the process id (PID) you can use the below command.īelow an example of top -p 3102 top - 11:59:56 up 3 min, 1 user, load average: 0.72, 0.70, 0.31 You can still use top command but with some argument. Once you identify the suspect, then you may want to focus on that process instead of everything like you saw above.
The top is installed on almost all Linux distribution. Tasks: 165 total, 2 running, 113 sleeping, 0 stopped, 0 zombie If you look at the first one, which is MySQL is taking 11.9% of CPU and 2.5% of CPU. You may want to start by looking into top or htop result to see the processes overview.Īs you can see below, it gives an excellent idea about what all processes are utilizing. But if you don’t have one or looking for a command-based solution, then here you go.
#Ubuntu hardware monitor software#
There are many monitoring software which does this out of the box. However, imagine a shared server where multiple services are running, and you need to find which one is eating all the resources. If the server host just one process, then it’s easy to find out when the process consumes all the resources. Know how much an individual process or system-wide consume CPU or memory.Īs a sysadmin, you often have to deal with an incident where the application is slow or unresponsive due to high CPU/memory/network utilization.