Kbase P27437: How to increase the Heap Stack Size on Windows?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  4/21/2008 |
|
Status: Unverified
GOAL:
How to increase the Heap Stack Size ?
GOAL:
How to modify the Desktop Heap size on Windows?
FACT(s) (Environment):
Windows
FIX:
Heap allocation is handled by the Session Manager (the manager of the different subsystems) which is configured from the following Registry key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SessionManager\SubSystems\Windows
This key has a very long string value, including the section:
SharedSection=1024,3072
The first number defines the maximum size of the system-wide heap (in kilobytes). The second number defines the size of the per desktop heap. If a third value is present e.g. "1024,3072,512", this covers the non-interactive desktop heap. By default, this value is not set. This means that Windows will assign a heap size that can grow dynamically as required. To set dynamically changeable heap size (third value mentioned above), enter the following:
SharedSection=1024,3072,1024
After modifying the SharedSection value in the registry, the system must be restarted for the changes take effect.