list memory usage of application in ubuntu
$ ps euf
If I run
If I run
free -m
I get total used free shared buffers cached
Mem: 496 489 6 0 4 452
-/+ buffers/cache: 33 462
Swap: 511 4 507
If I run ps euf
I getUSER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 948 0.0 0.0 5928 472 tty6 Ss+ Aug25 0:00 /sbin/getty 384
root 947 0.0 0.0 5928 472 tty5 Ss+ Aug25 0:00 /sbin/getty 384
root 946 0.0 0.0 5928 472 tty4 Ss+ Aug25 0:00 /sbin/getty 384
root 945 0.0 0.0 5928 472 tty3 Ss+ Aug25 0:00 /sbin/getty 384
root 944 0.0 0.0 5928 472 tty2 Ss+ Aug25 0:00 /sbin/getty 384
root 943 0.0 0.1 51856 536 hvc0 Ss Aug25 0:00 /bin/login --
root 978 0.0 0.4 20580 2424 hvc0 S Aug25 0:01 \_ -bash TERM=
root 7593 0.0 0.1 10332 524 hvc0 T Aug25 0:00 \_ nano he
root 12576 0.7 3.1 122520 16220 hvc0 Sl 07:42 0:12 \_ ./mongo
root 12599 0.0 0.2 16300 1060 hvc0 R+ 08:09 0:00 \_ ps euf
Note: Some forums say
The commandps euf
does not list all the processes - you should useps axeuf
for that.