Posts Tagged ‘Page File’

How to clear Page file in Windows Server

I was running a dev server which has got 60 GB HDD and couple months later observed that there is no free space. I was looking at the space why it has occupied fully and after sometime understood that the PageFile.sys is having 6.5 GB and wondered how to clear this with simple steps as pagefile.sys is managed by Windows.
 
Finally found the way.
 
  1. Start Registry Editor (Regedt32.exe).
  2. Change the data value of the ClearPageFileAtShutdown value in the following registry key to a value of 1:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management

    If the value does not exist, add the following value:

    Value Name: ClearPageFileAtShutdown
    Value Type: REG_DWORD
    Value: 1

Note: This change does not take effect until you restart the computer. 

This has given me more space and had cleared other unwanted files to ensure the server runs without space issues.

~ Gangadhar Kotu