Portal Home > Knowledgebase > VPS Hosting and Dedicated Servers > How to see memory usage on the virtual or dedicated server


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



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
Buy VPS with OKPay (Views: 6170)

* Minimum sign up periods for cPanel Web Hosting plans: Mini - 3mo., Pro - 1mo., Biz - 1mo., cPanel Reseller Hosting, Linux VPS, Windows VPS, Managed cPanel VPS and Dedicated Servers - 1mo. secret link
Accepted payments: Credit/Debit Card, Paypal, Payza, Skrill, WebMoney, CashU, Ukash, paysafecard, Bitcoin, Perfect Money, SolidTrust Pay, OKPay, EgoPay, Western Union/MG, Wire Transfer and more.