How to check the amount of free RAM memory on Linux Cloud Servers

2021-06-01 By Mark 2382 Views linux ram memory
0 reviews

The memory (RAM) is one of the critical components in the server and it may slow down the server performance if the server memory is fully utilized.


In Linux, the free command is used to check the amount of free RAM memory in the system, which also shows swap space, buffer, and cache space. By default, most Linux distributions have free command inbuilt, so no package needs to be installed.


  1. The below command will show the default view with kilobyte units.

    # free
    

    linuxfreeram1

  2. Use -b (bytes), -k (kilobytes), -m (megabytes), -g (gigabytes) and -tera (terabytes) to check memory usage in other units. Run the below command for an example output of megabytes unit:

    # free -m
    

    linuxfreeram2

  3. Use the below command to display memory in human readable.

    # free -h
    

    linuxfreeram3

  4. Run the bellow command to capture memory usage with delay and it will capture memory utilization every mentioned time seconds and human-readable. In the below example it will capture memory utilization every 3 seconds and you can change the time value with the original.

    # free -hs 3
    

    linuxfreeram4

  5. Run the below command to show low & high memory statistics.

    # free -l
    

    linuxfreeram5

  6. Get the information of total for every column, add -t option behind free command as below.

    # free -t
    

    linuxfreeram6


Related Tutorials

What do you think about this article?

Rate this article
Need assistance?

Try this guide to receive free bundled services at signup on a new free account.

Sign Up

Your Feedback Is Important

We hope you’ll give the new products and updates a try. If you have an idea for improving our products or want to vote on other user ideas so they get prioritized, please submit your feedback on our Community platform. And if you have any questions, please feel free to ask in the Community or contact our Technical Support team.