Shell Script : Find Linux Memory Usage Of Application/Program

Discussion in 'Linux News' started by Rob, Jun 7, 2013.

  1. Rob

    Rob Administrator Staff Member

    Messages:
    573
    Likes Received:
    184
    Trophy Points:
    43
    Memstat.sh is a shell script that calculates linux memory usage for each program / application. Script outputs shared and private memory for each program running in linux. Since memory calculation is bit complex, this shell script tries best to find more accurate results. Script use 2 files ie /proc//status (to get name of process) and /proc//smaps for memory statistic of process. Then script will convert all data into Kb, Mb, Gb. Also make sure you install bc command. You can download linux memory usage script in pdf version also.


    Read the full article on ExpertsLogin.com: http://www.expertslogin.com/shell-script-2/linux-memory-usage-program/

Share This Page