RAM Optimization with Windows Server Virtual Memory (Pagefile) Setting
When large game maps, SQL databases or bot systems running on Windows Server momentarily consume excessive RAM, if the physical RAM limit is insufficient, running programs suddenly close without causing an error (crash). To prevent Windows from locking the server in such cases and to use part of the disk (SSD/NVMe) as spare RAM Virtual Memory (Virtual Memory / Pagefile) must be adjusted.
Creating Virtual RAM Step by Step:
- into the Windows search bar
Gelişmiş sistem ayarlarıType it and open the result. - In the opened window advanced Go to the (Advanced) tab and under the "Performance" heading Settings... Click the button.
- again from the Performance Options panel advanced Switch to the tab and under the "Virtual Memory" heading Change... Press the button.
- located at the top "Automatically manage paging file size across all drives" UNcheck the option.
- Select the C: drive and click "custom size" Check the (Custom Size) option.
- You must enter values in Megabytes (MB). Ex: To add 4 GB virtual RAM:
- Starting size (MB):
4096 - Maximum size (MB):
4096write.
- Starting size (MB):
- Located just to the right of the boxes Set Definitely press the (Set) button (If not pressed, the setting will not be saved), then close the windows by clicking OK.
You must reboot your server for the settings to take effect. Even if your RAM gets stuck when the server is turned on, the system will automatically activate paging and prevent your game servers from shutting down.
This article is specially prepared for PvPServer.