monitor the CPU/memory usage of one single process
I want to monitor a specific process. How much CPU does it use? How much memory does it eat?
$ top -p PID # or $ htop -p PID
The option “
-p” stands for “pid’.
Tip from here.