1. IMPORTANT - 11/13/2015: In light of a possible breach we have scrubbed all passwords. You will need to request a password reset through the site. Click here for more information.

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

    Oct 27, 2011
    Likes Received:
    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