Click to search Andy Jarrett.co.uk RSS feed

Loading Twitter

Finding out memory usage on Linux

Since having my own server I'm becoming a little OCD on memory usage.

There are two tools I have been using which are

  1. Top:
    view plain print about
    1$ top
    Once its loaded press shift-m to sort by memory. You can read more here
  2. Free
    view plain print about
    1$ Free -m
    This is a high level view of whats being used and whats free. You can read more about this here. Don't worry about the first line of output here its always close as Linux automatically uses all the RAM you've got for caching etc. The second line is usage without counting the OS-internal buffers and cache and is the "real" RAM utilization. * (Thanks to Barney Boisvert for his help on better understanding these :))

Comments Comments (1) | Print Print | Send Send | 1234 Views

(Comment Moderation is enabled. Your comment will not appear until approved.)
If you want a prettier version of "top" you can use "htop". Still console based, but a bit nicer :o)
BlogCFC by Raymond Camden + Twitter @AndyJ + ColdFusion jobs + Contact Me + Snippets/Downloads + RSS .