How to check VPS RAM

This time, we will use the PuTTy application to log in to the VPS server.

1. How to Monitor VPS RAM Usage with the vmstat -s Command

The first way to check VPS RAM is by utilizing the vmstat -s command. This command can display complete RAM usage statistics on your VPS server.

You can simply type the vmstat -s command in PuTTy. If so, this is the result:

cara cek ram vps via perintah vmstat -s

For information related to RAM usage on hosting. Starting from the total memory, memory used, and remaining memory. In fact, there are also statistics on memory used for other needs, such as swap cache.

2. How to check VPS RAM via the cat /proc/meminfo command

The next way to check VPS RAM is through the cat /proc/meminfo command. With this one command, you can check the statistics as well as the memory specifications used by the VPS server.

Run the cat /proc/meminfo command. There is a space after the word cat! Here are the results:

perintah cat proc meminfo

As shown above, there are more than 20 RAM usage statistics on your VPS. They range from standard information such as memory used and memory remaining, to more specific statistics such as active and inactive memory.

3. How to view VPS RAM usage using the free command

Another way to check VPS RAM for you to try is through the free command. Compared to the previous options, this command will display RAM usage with the simplest output.

Here are the results of the free command if executed:

perintah free

For RAM usage statistics on the server, it is divided into two lines. Namely, memory usage for general needs and memory utilized as swap media.

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.