How to Set the HeapDeCommitFreeBlockThreshold Registry Value
When memory is freed at a given address, the operating system heap manager checks how many contiguous bytes are free around that address. After that check is complete, the heap manager can do one of two things:
Keep the contiguous memory block committed.
De-commit the contiguous memory block and mark it as reserved only.
The HeapDecommitFreeBlockThreshold registry key specifies the number of contiguous bytes above which the memory is de-committed. By default, the heap manager does not necessarily combine all free blocks or make new allocations; therefore, blocks may be de-committed and become useless holes in the virtual address space. This can lead to virtual memory fragmentation, poor performance and ultimately system instability.
On systems with 1 GB or more of physical memory installed, performance is optimized by controlling the size of the chunks of de-committed memory. The HeapDecommitFreeBlockThreshold registry key provides control of how the memory is handled as it is freed. When adding this value to the registry, you must configure it with a hex value of 0x00040000 (262144 in decimal).
Microsoft does not support any other value for the HeapDecommitFreeBlockThreshold registry key a hex value of 0x00040000 (262144 in decimal). In addition, only Exchange Server 2000 and Exchange Server 2003 support the use the HeapDecommitFreeBlockThreshold registry key, and only when there is 1 GB or more of physical memory installed. Do not use the HeapDecommitFreeBlockThreshold registry key on a system that has less than 1 GB of physical memory installed, or on a system that is not running Exchange 2000 Server or Exchange Server 2003, regardless of how much physical memory is installed.
Before You Begin
Before you perform the procedure in this topic, be aware that the procedure contains information about editing the registry.
Warning
Incorrectly editing the registry can cause serious problems that may require you to reinstall your operating system. Problems resulting from editing the registry incorrectly may not be able to be resolved. Before editing the registry, back up any valuable data.
Procedure
To Set the HeapDeCommitFreeBlockThreshold Registry Value
Open a registry editor, such as Regedit.exe or Regedt32.exe.
Navigate to HKLM\System\CurrentControlSet\Control\Session Manager.
Right-click Session Manager and select New | DWORD Value.
Name the new DWORD value HeapDecommitFreeBlockThreshold.
Double-click the HeapDecommitFreeBlockThreshold value.
Change Base to Hexadecimal.
In the Value data field, enter 0x00040000.
Close the registry editor and restart the Exchange Server computer for the change to take effect.
For More Information
For more information about the HeapDecommitFreeBlockThreshold registry key, see the following Microsoft Knowledge Base articles:
315407, "XADM: The "HeapDecommitFreeBlockThreshold" Registry Key" (https://go.microsoft.com/fwlink/?linkid=3052&kbid=315407).
815372, "How to Optimize Memory Usage in Exchange Server 2003" (https://go.microsoft.com/fwlink/?linkid=3052&kbid=815372).
325044, "HOW TO: Troubleshoot Virtual Memory Fragmentation in Exchange 2003 and Exchange 2000" (https://go.microsoft.com/fwlink/?linkid=3052&kbid=325044).
For information about how to edit the registry, see the Microsoft Knowledge Base article 256986, "Description of the Microsoft Windows Registry," (https://go.microsoft.com/fwlink/?linkid=3052&kbid=256986).