1

I just got a Windows Server 2008 R2 64 bit Virtual Private Server (VPS) and found out that the page file was disabled completely. This give me some memory problems where application quit unexpectedly and so on.

The server got 2GB reserved RAM and 100GB hard drive. I am using the Administrator account (part of the Administrators group) to alter the system.

I tried to enable the page file. Both specific values and system administrated. In all cases the setting is reset back to No Page file after reboot. I even tried manually edit the registry setting the page file. The registry key was also reset back to nothing after reboot.

I am not sure what to call it but I am guessing the VPS host uses a system where they have the "main windows installation" and I have the changes or something like that. At least when I hacked the registry and enabled Windows Updates and updated windows my server crash so much that it could not restart. It had to be reinstalled.

I would really love to have a page file or something that does something similar to avoid the OutOfMemory problems I am encountering and I am hoping experts on Server Fault have ideas how to.

MDMarra
  • 100,734
  • 32
  • 197
  • 329
Anders
  • 142
  • 1
  • 8

1 Answers1

1

I'm using a Virtuozzo VPS and have the same situation.

Short answer: No, you can't have a pagefile (virtual memory).

The reason, according to this Parallels' KB article, is that:

each and every VE uses the pagefile residing on the node – i.e. the whole memory which can be allocated by the VEs can be gotten from the physical memory installed on the node and virtual memory allocated from pagefile

So, basically, you are already using a pagefile, but you have no way to customise it because it's on the node which only your host has access to.

Note: a "VE" is a VPS instance/container/whatever

HOWEVER, depending on the version of Virtuozzo your host is running, you CAN emulate having a pagefile in your container by doing exactly what you did, WITHOUT restarting the container. See this article for reference.

Alternatively, you can do the same from a command line or start-up script with the following:

reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management"  /v PagingFiles  /t REG_MULTI_SZ /d "C:\pagefile.sys 2046 4092" 

I have no idea whether this works or not, but I'm giving it a go right now...