Menu

monitor/

Monitor thread count

watch -n 0.5 "ps -eLf | grep traffic_server | wc -l"
· 15 Jan 2021

Monitor process with top

One liner to monitor a process with the name /wshub:

top -p "$(pgrep -f /wshub)"
· 1 Jan 2020

Monitor cpu and memory usage of the process

Print every second cpu and memory usage of the process:

watch -n 1 "ps -eo pid,pcpu,pmem,args | kazy -i xnotitle -e kazy"
· 1 Jan 2020