"Out of Memory" error message appears when you have a large number of programs running (126962)
The information in this article applies to:
- Microsoft Windows 2000 Server
- Microsoft Windows 2000 Advanced Server
- Microsoft Windows 2000 Professional
- Microsoft Windows 2000 Datacenter Server
- Microsoft Windows NT Workstation 3.5
- Microsoft Windows NT Workstation 3.51
- Microsoft Windows NT Workstation 4.0
- Microsoft Windows NT Server 3.5
- Microsoft Windows NT Server 3.51
- Microsoft Windows NT Server 4.0
- Microsoft Windows NT Advanced Server
- Microsoft Windows XP Home Edition
- Microsoft Windows XP Professional
- Microsoft Windows Server 2003, Datacenter Edition
- Microsoft Windows Server 2003, Enterprise Edition
- Microsoft Windows Server 2003, Standard Edition
- Microsoft Windows Server 2003, Web Edition
This article was previously published under Q126962 Important This article contains information about how to modify the registry. Make sure to back up the registry before you modify it. Make sure that you know how to restore the registry if a problem occurs. For more information about how to back up, restore, and modify the registry, click the following article number to view the article in the Microsoft Knowledge Base: 256986 Description of the Microsoft Windows registry SYMPTOMS
When you run a large number of Windows-based programs, "Out Of Memory"
error messages appear when you attempt to start new programs or try to use
programs that are already running, even though you still have plenty of
physical and pagefile memory available.
CAUSE
This behavior can occur if the desktop heap in the WIN32 subsystem is
depleted.
Note This problem occurs more often under Windows NT 3.5 as the default size of the desktop heap is 512K. Under Windows NT 3.1 the default value is 3072K. The default was reduced to increase performance.
RESOLUTIONWarning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall your operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.To correct this problem, increase the size of the desktop heap:
- Run Registry Editor (Regedt32.exe).
- From the
HKEY_LOCAL_MACHINE subtree, go to the following key:
\System\CurrentControlSet\Control\Session Manager\SubSystems
- Select the Windows value.
- From the Edit menu, choose String.
- Increase the SharedSection parameter.
SharedSection specifies the system and desktop heaps using the
following format:
where xxxx defines the maximum size of the system-wide heap (in
kilobytes) and yyyy defines the size of the per desktop heap. The
default value of the per desktop heap under Windows NT 3.5 (512K) can
support approximately 2,500 windows. Increasing the desktop heap by
256K or 512K normally provides enough memory to correct "Out of Memory"
errors messages.
Modification Type: | Minor | Last Reviewed: | 2/27/2006 |
---|
Keywords: | kbenv KB126962 |
---|
|