badacademy.blogg.se

Check cpu and ram usage linux
Check cpu and ram usage linux







check cpu and ram usage linux

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

check cpu and ram usage linux check cpu and ram usage linux

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. There are many monitoring software which does this out of the box.

check cpu and ram usage linux

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.









Check cpu and ram usage linux