[WIP] Process Survey

#Displayed in descending order of CPU usage
$ ps aux --sort -%cpu
#Display of CPU usage in ascending order
$ ps aux --sort +%cpu 

#Displayed in descending order of RSS
ps aux --sort -rss
#Displayed in ascending order of RSS
ps aux --sort +rss

#Parent and child
#By the way, if you kill a child, your parents will die too.
$ ps auxf

#USR1 is a USeR defined signal
#The behavior of the process when receiving this signal can be freely set by the application.
$ kill -USR1 `pgrep nginx`

#Forced stop
#High urgency when memory is used up (swap causes CPU to be used, etc.)
$ kill -9 `pgrep nginx`

Recommended Posts

[WIP] Process Survey
Gaussian process
Linux process