Answer the question
In order to leave comments, you need to log in
How to track application processes?
Please tell me the console command or console software that can track all the processes of the desired application by pid. And display, for example, how much ram, cpu each of such a process eats.
I found this way:
watch -n 1 'ps -eo pid,ppid,cmd,%mem,%cpu --sort=-%mem | grep PROCESS_NAME'
But it shows only 1 main process, but is there any way to show the processes that it started?
Answer the question
In order to leave comments, you need to log in
top
is its more advanced and convenient version:
htop
pidof
and more. etc.
Here is a chic, intelligible video about such utilities:
Useful Linux commands and utilities
from the 17th minute ...
And here is another fresh article:
TOP 7 analogues of the top
1. Htop
2. Atop
3. Nmon
4. Vtop
5. Bashtop utility
6. Gtop
7. Glances
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question