You think you have a lot of memory (RAM) in your computer and still you are getting out of memory errors? This can indeed happen if you are running many applications or memory intensive applications under Windows XP.
There are different reasons for this, one being the memory fragmentation in Windows XP. Like a hard disk, memory can become fragmented. Further some memory is not always immediately released, like DLL (dynamic Link Library) memory. If a DLL is not used anymore, it is not always unloaded from memory right away.
Another reason is that Windows XP can not always make all available internal memory available to an application. This can be the result of a limit in the number of system page table entries. This of course may lead to the out of memory errors. A solution for many of these problems is to tell Windows XP to allocate more memory for system page table entries. The steps below show you how:
- Start the Registry Editor.From the Windows Start menu, select Run. In the Run box, type regedit and click OK.
- In the Registry Editor, locate the following key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management
- Next, double-click the Systempages entry and enter a value of “ffffffff” (8) in the Edit DWORD Value dialog box.
- Click OK and then close the Registry Editor.
- Reboot your computer.
When Windows XP restarts, the operating system will try to allocate more system page table entries, depending on the internal amount of memory. Basically Windows allocates the maximum possible and then adjusts the value if the computer configuration changes. This Windows XP tweak should prevent many of the out of memory errors.