How to view the processes that consume the most CPU and memory under linux
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!