Quick linux script to check memory usage per program
Posted by vostorga - 29/01/10 at 11:01:02 amA long time ago somebody shared me the following script to check memory usage per program.
$ ps aux | awk '{print $6" "$11,$12,$13,$14}' |
egrep -v "0.*\[.*\]" |
awk '{print $1/1024" MB --> "$2,$3,$4,$5}' | sort -g
Output is the similar to the following:
….
6.39062 Mb –> gnome-screensaver
6.85547 Mb –> /usr/libexec/vino-server –sm-disable
7.22656 Mb –> /usr/libexec/multiload-applet-2 –oaf-activate-iid=OAFIID:GNOME_MultiLoadApplet_Factory –oaf-ior-fd=18
7.27344 Mb –> /usr/libexec/gnome-settings-daemon
7.98438 Mb –> C:\windows\system32\explorer.exe /desktop
8.35547 Mb –> /usr/libexec/gnome-volume-manager –sm-disable
10.8438 Mb –> metacity
11.1094 Mb –> c:\Archivos de programa\Alcatel\A4980\Alcatel 4980\a4980.exe
14.7305 Mb –> vinagre
20.1914 Mb –> gnome-terminal
20.6758 Mb –> planner
21.2227 Mb –> c:\Archivos de programa\Alcatel\A4980\Alcatel 4980\a4980.exe
24.2578 Mb –> gnome-panel
25.5977 Mb –> nautilus
31.6602 Mb –> claws-mail
91.875 Mb –> gedit
109.188 Mb –> /usr/bin/X :0 -audit 0
144.84 Mb –> /usr/bin/firefox
Powered by WordPress with GimpStyle Theme design by Horacio Bella.
Entries and comments feeds.
Valid XHTML and CSS.