How to see memory usage on the virtual or dedicated server

To view available memory in MB over SSH to your virtual private server or dedicated server, use the following command:

free-m

You’ll get something like:

total       used       free     shared    buffers     cached
Mem:           512         77        434          0          0          0
-/+ buffers/cache:         77        434
Swap:            0          0          0

To monitor the memory in real time on 1 second for 60 seconds use:

vmstat 1 60

The result should be similar to:

procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu------
r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st
1  0      0 444848      0      0    0    0     0     1    0    5  0  0 100  0  0
0  0      0 444836      0      0    0    0     0     0    0 8370  0  0 100  0  0
0  0      0 444836      0      0    0    0     0     0    0 8094  0  0 100  0  0
0  0      0 444836      0      0    0    0     0     0    0 7753  0  0 100  0  0
0  0      0 444836      0      0    0    0     0     0    0 9175  0  0 100  0  0

To keep track to more information about the server processes use the command:

top

  • 74 Users Found This Useful
Was this answer helpful?

Related Articles

Change of the reverse DNS record for VPS hosting and dedicated server

To change the reverse DNS record for IP address, you’ll need to contact the support department in...

Checking of open connections

If you want to see the open connections to port 25 on your virtual private server or dedicated...

Do I have full root access to my VPS

Yes you do. With virtual hosting (VPS) you get root password for access, trough which you have...

Do I have my own IP address with my virtual server

Yes you do. We provide your own IP address to each virtual private server. If you need more than...

How to create .tar.gz archive

Creating .tar.gz archive can be done with one command. Use the following: tar -pczf...