Centos system Linux server quickly checks processes that occupy too many CPU and memory resources

888u

Last update at :2023-12-12,Edit by888u

For Linux system operations, most commands are generally used. Let’s share the Centos command to quickly check the processes that occupy the most resources. Sometimes it is very useful, especially when website access is slow. In addition to troubleshooting line problems, You can check whether the CPU, memory and other resources are insufficient, and you can understand which processes take up a lot of resources.

1. View the ten processes that occupy the most CPU

ps aux|head -1;ps aux|grep -v PID|sort -rn -k +3|head

2. View the ten processes that occupy the most memory

ps aux|head -1;ps aux|grep -v PID|sort -rn -k +4|head

Recommended site searches: Jiangsu high defense server, website domain name IP address query, instant IP server change, telecommunications server, how to cancel domain name registration, Korean independent server, vps host, Hong Kong host high defense, server rental, foreign server rental price ,

Centos system Linux server quickly checks processes that occupy too many CPU and memory resources

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码