output list of processes sorted for RAM USAGE”
ps uax --sort %mem|tail; # output processes with most RAM usage
vim /scripts/stats_ram_usage.sh; # create that file and fill it with:
#!/bin/bash
# output the top X processes consuming most RAM
free -m;
if [ $# -eq 0 ]
then
echo "please give how many processes that consume the most RAM should be displayed"
else
ps -eo pmem,pcpu,rss,vsize,args --sort %mem|tail -n $1;
fi
usage:
# output the top 20 RAM consuming processes
/scripts/stats_ram_usage.sh 20
- only together we can create a truly free world
- plz support dwaves to keep it up & running!
- (yes the info on the internet is (mostly) free but beer is still not free (still have to work on that))
- really really hate advertisement
- contribute: whenever a solution was found, blog about it for others to find!
- talk about, recommend & link to this blog and articles
- thanks to all who contribute!