"Out of Memory" error message appears when you have a large number of programs running
来源:互联网 发布:手工编程铣圆的程序 编辑:程序博客网 时间:2024/05/22 12:22
"Out of Memory" error message appears when you have a large number of programs running
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.
Resolution
Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:
322756 How to back up and restore the registry in Windows
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.
For Windows NT:
SharedSection specifies the system and desktop heaps using the following format:
SharedSection=xxxx,yyyy
Add ",256" or ",512" after the yyyy number.
For Windows 2000, Windows XP, and Windows Server 2003:
SharedSection uses the following format to specify the system and desktop heaps:
SharedSection=xxxx,yyyy,zzzz
For 32-bit operating systems, increase the yyyy value to "12288";
Increase the zzzz value to "1024".
For 64-bit operating systems, increase the yyyy value to "20480";
Increase the zzzz value to "1024".
More Information
Windows NT uses a special memory heap for all Windows-based programs running on the desktop. The desktop heap is used for all objects (windows, menus, pens, icons, etc.). When a large number of Windows-based programs are running, this heap may run out of memory. When there is not enough memory to satisfy an allocation request, the system normally returns an error and notifies the user that they are running low on memory. Some programs do not handle the failure gracefully, and in some cases there may not be enough memory to create the error message dialog box. As a result, the requested operation fails without any indication.
The SharedSection key is a long string when viewed using Registry Editor. The default value for this key is as follows.
%SystemRoot%\system32\csrss.exe
ObjectDirectory=\Windows
SharedSection=1024,3072,512
Windows=On
SubSystemType=Windows
ServerDll=basesrv,1
ServerDll=winsrv:GdiServerDllInitialization,4
ServerDll=winsrv:UserServerDllInitialization,3
ServerDll=winsrv:ConServerDllInitialization,2
ProfileControl=Off
MaxRequestThreads=16
The first SharedSection value (1024) defines the heap size common to all desktops. This includes the global handle table (Window handles are unique machine wide) and shared system settings (such as SystemMetrics). It is unlikely you would ever need to change this value.
The second SharedSection value (3072) controls the size of the desktop heap that is associated with an interactive window station (used for Windows objects). This static value is used to prevent ill- behaved applications from consuming too many resources. Because the desktop heap is mapped into each process' address space, this value should not be set to an arbitrarily high value (as it would decrease performance), but should only be increased sufficiently to allow all the desired applications to run.
The third SharedSection value (512) controls the size of the desktop heap for each desktop that is associated with a "non-interactive" window station. If this value is not present, the size of the desktop heap for non-interactive window stations will be same as the size specified for interactive window stations (the second SharedSection value).
阅读全文
1 0
- "Out of Memory" error message appears when you have a large number of programs running
- JVM out of memory error
- Out of memory Error (5.0)
- Linux Out of memory error
- When Linux Runs Out of Memory
- When Linux Runs Out of Memory
- When Linux Runs Out of Memory
- When Linux Runs Out of Memory
- When Linux Runs Out of Memory
- SurfaceFlinger/gralloc Out of Memory error when allocating buffer memory for use with virtual frame
- How to delete a large number of data in SharePoint for List when refreshing data?
- Java 读large excel Out of memory解决办法
- an out of memory error has occurred.Consult the 'running eclipse' section of the read me file for...
- 95.You have a large amount of historical data in a flat file. Some analysts in your organization nee
- Memory Layout of C Programs
- Memory Layout of C Programs
- Memory Layout of C programs
- Memory Layout of C Programs
- 学习CSS布局
- html静态页面引入公共html页面
- 【TensorFlow】tf.nn.conv2d是怎样实现卷积的?
- 纹理对象 缓存对象 纹素直接的数据流向关系
- 秒米合作3
- "Out of Memory" error message appears when you have a large number of programs running
- 学习链接
- MATLAB中的bsxfun函数
- 修改发布到weblogic服务器上的项目上下文根(项目访问名称)
- 重建二叉树
- oracle解决导出空表语句,找出空表,并执行alter
- SAP Cloud Platform 实现 SAP Web IDE 单点登录(ADFS)
- go语言初步了解
- java(服务端)-集成银联支付,含代码