Report abuse


			
desc "Get top 5 processes by real memory usage" 
task :mem_check do
  run %q{
    ps axcmo pid,rsz,command | awk '{LIMIT = 1; if ($2 > LIMIT) printf $2/1024 "MB " $3 "\n"}' | sort -rn | head -n5
  }
end