Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to view the processes that consume the most CPU and memory under linux

Shulou Source: shulou.com Published: 2022-06-01 05:07:04 10月04日 Update

This article mainly shows you "how to view the most CPU-consuming and memory-consuming processes under linux", which is easy to understand and clear. I hope it can help you solve your doubts. Let me lead you to study and learn this article "how to view the processes that consume most CPU and memory under linux".

View the processes that consume the most CPU and memory under linux

Top 10 processes used by 1.CPU:

Ps auxw | head-1 | PS auxw | sort-rn-K3 | head-10ps-e-o pcpu,pid,user,tty,args | sort-n-k 1-r | head

two。 Top 10 processes with the most memory consumption

Ps auxw | head-1 + PS auxw | sort-rn-K4 | head-10ps-e-o pmem,pid,user,tty,args | sort-n-k 1-r | head

3. Top 10 processes with the most virtual memory usage

Ps auxw | head-1 | PS auxw | sort-rn-K5 | head-10

These are all the contents of this article entitled "how to view the processes that consume the most CPU and memory under linux". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Tags: Process memory consumption content articles learning help easy to understand more organization knowledge editing industry information information channels channels research Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB Apple OPPO Reno Redmi Microsoft