Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To install htop do the following on Ubuntu: 

Code Block
$ sudo apt-get install htop


And the following on CentOS: 

Code Block
$ sudo yum install htop


Monitoring Memory Usage

Memory usage is a little more complicated than CPU usage. This is because memory usage can come in many different forms: free, cached, buffered, and in-use.

This article describes a few different tools you can use to see details about your instance's memory usage. In addition, we also recommend the site Linux Ate My RAM! as it explains in detail why all of your memory is not in use even though some tools might report it as such.

...

Depending on the application you're using, you might be able to tune it so it consumes a smaller amount of resources. For example, Java-applications are notorious for consuming large amounts of memory, however, this is only if the Java-based application has not been configured with a memory limit.

This article has details on how you can configure your Java application to use a specified amount of memory.

If you're using a web-based application which is based on Apache, you can also configure it to use a lower amount of memory. See this article for more details.

Use Smaller Flavors

...