Tuesday, 1 April 2014

Drill Down Memory usage in RHEL

Drill Down Memory usage in RHEL

Below script will used down to drill down the memory used by the process id in Linux

1. Find the process id by using the below script

     ps axu | awk '{print $2, $3, $4, $11}' | head -1 && ps axu | awk '{print $2, $3, $4, $11}' | sort -k2 -nr |head -5

2. Drill down the each process id using below script ( head - 20 => can be change according to the output)


    pmap -x <PID> | awk '{print $1, $2*0.000976563, $3, $4,$5,$6,$7,$8,$9}' | sort -k2 -nr |head -2

No comments:

Post a Comment