July 19, 2011

Check free memory on unix server

Commands to check free memory on unix servers -

(1) vmstat 1 2 | tail -1 | awk '{printf "%d%s\n", ($5*4)/1024, "MB" }'

(2) top -h -d 1