Wednesday, March 16, 2016

Processes using high memory or cpu using unix95

 Listing of processes who are using high memory : UNIX95= ps -eo sz,comm,args | sed 1d | sort -rn | head -10|awk '{size=$1/1024; pri... thumbnail 1 summary

 Listing of processes who are using high memory :


UNIX95= ps -eo sz,comm,args | sed 1d | sort -rn | head -10|awk '{size=$1/1024; printf("%dMb %s\n", size,$2);}'| more


 or


UNIX95= ps -eo vsz,comm,args | sed 1d | sort -rn | more


 Listing of processes who are using high CPU:


UNIX95= ps -e -o "vsz pcpu ruser pid stime time state args" | sort -rn |head -10



No comments

Post a Comment

Any thoughts?