how to find the most consuming process cpu and memory
Hello
As an admin I am obliged to find the most utilizing process and command that is run that is consuming the most cpu or memory.
I have searched the internet and found these but do not give out what I need so I told myself to return to the experts and most experienced users:
ps -elfy
processes are using the most memory
/usr/bin/ps -el | sort -rn -k 10
(top2bottom)
ps -e -o pid,vsz,comm | sort -rn +1
prstat -acs size
prstat -acs size -n 9999999,9999
lists files from largest to smallest on the root filesystem
du -akd / | sort -nr | more