Tuesday, May 3, 2022

List the Memory allocated to processes

 

Use below command to find the target process, and take action on it. i.e. restart it.

ps -o pid,user,%mem,command ax | sort -b -k3 -r

Kill processes with same pattern:

# pkill -9 -f /usr/local/bin/jvm_stats

No comments:

Post a Comment