🐧 Linux - Identify CPU Intensive Processes
De
Posted on March 16, 2022
To list all the current processes, starting from the most CPU intensive
$ top -o %CPU
Once you have identified the process, take not of the PID shown in the leftmost column.
You should see something similar to the image below
In our example, the bash script with PID 1435719 is consuming 100% CPU - out of 1 of 4 cores. (see first entry of the image above)
The command ps displays information about a selection of the active processes.
We can pipe ps to grep to obtain a clear-cut list
of the processes we are looking for.
$ ps aux | grep 1435719
The kill command can be used to stop a process.
kill 1435719
💖 💪 🙅 🚩
De
Posted on March 16, 2022
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.
Related
webdev Understanding HTTP, Cookies, Email Protocols, and DNS: A Guide to Key Internet Technologies
November 30, 2024