Linux command to show memory in use EC2 Amazon Linux AMI

September 12, 2012   

Sometimes you may wish to see how much memory your application is eating up on your amazon ec2 instance (or indeed any other linux box) you can do this by running the command below, at terminal (over SSH).

free -m

You'll get something like this pop up.

root@ip-101-101-101-101 ec2-user]# free -m
             total       used       free     shared    buffers     cached
Mem:           594        565         28          0          3         73
-/+ buffers/cache:        489        105
Swap:            0          0          0

The important part is the second line which will give you the total free memory after everything else.


blog comments powered by Disqus