![]() ![]() Make sure that you set the execute bit for the script that you have created ( chmod 555 ls-mem) and you are all set. Ps -A -sort -rss -o comm,pmem,rss | awk 'įor (j = 5 human_readable 1' | sort -rnk4 | awk 'īEGIN It could be ~/bin or /usr/local/bin based on whether you have permissions to these folders and based on whether the folder is in the $PATH variable. Here is a small bash script to help you do the same.Ĭopy the following and save as ls-mem (or whatever name you wish to name it as) and then add it to a folder which is in your $PATH variable. Type top command Press Enter to run the command. ![]() What if you want to see the total memory usage for each application and not by each process. The procedure to check memory usage in Linux is as follows: Open the terminal application. Similarly you could see apache run multiple processes if you have it configured to do so. However you would see multiple processes for applications like Chromium or Firefox for each of the tabs that are open in them. THP is enabled by default on RHEL 6.x and useful for large(. If you are a GNU Linux user it is very likely that you would already know about the command top that allows you to see the memory and processor usage by each process in your system. The cause for this behavior is the RedHat Linux 6.x feature of Transparent Hugememory Pages (THP). ![]()
0 Comments
Leave a Reply. |