Knowledgebase
Verify RAM Usage
Posted by Martin Sharp on 26 June 2014 07:37 AM

 

Current RAM usage is calculated by adding Physical RAM usage + Page File usage. The Page File is a large file on disk that the operating system will begin to utilize as Virtual RAM when Physical RAM runs low. Due to the mechanical nature of disk I/O, this can cause your application (or the entire VPS) to freeze/slow down while Windows works to expand the Page File or retrieve data that should otherwise be stored in RAM.

Before checking your RAM usage you may need to increase your Command Prompt window's buffer size so that you can view all of the systeminfo data that is output to that window.  After opening the CMD window right-click the CMD icon in the upper-left of the window then select Properties.  Input your settings on the Layout tab.
We suggest using the following values for your CMD window sizes:
Screen Buffer Size: Width 120, Height 600 / Window Size: Width 120, Height 30

 

To check RAM usage: 

  • Open a CMD window by clicking Start > Run...
  • In the Run box type "cmd", then click OK (A command prompt window will open)

 

  1. In the command prompt window type "systeminfo", then press ENTER

The command will output your VPS' current system information. Look for the following lines near the top:

Total Physical Memory: 511 MB
Available Physical Memory: 166 MB
Page File: Max Size: 1,023 MB
Page File: Available: 648 MB
Page File: In Use: 375 MB

*This VPS has 512 MB of RAM. It is reflecting 511 MB because 0 is the first increment when your RAM is counted by "systeminfo".

In a Windows Server 2008 R2 VPS the "Page File" values will be replaced by "Virtual Memory" values.

Keep in mind Windows will always use some amount of swap, but anything more than 250 MB will begin to degrade performance.

 

We use this formula to calculate VPS Total RAM usage:
Total RAM usage = (Total Physical Memory - Available Physical Memory) + (Page File In Use - 250)

In the above case, VPS Total RAM usage is:
(511 - 166) + (375 - 250) = 470 MB of Total RAM used (in a 512 MB Physical RAM subscription)

You should always be sure to have 80-100 MB of Physical RAM over your Total RAM usage.

If your Total RAM usage is above subscribed Physical RAM then it is likely this is causing your application to hang or crash. Try reducing RAM usage or add more Physical RAM to your VPS subscription. Keep in mind that virtually everything you do will use RAM, especially using the Internet Explorer web browser.

(33 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
© 2016 Commercial Network Services. All rights reserved.
No content may be reproduced or redistributed without express written permission on CNS letterhead.
Only Commercial Network Services subscribers are authorized to use our content during their subscription period.
Permission to use our content may be revoked at any time, and at the sole discretion of Commercial Network Services.
Some content on this site is © by their respective owners.