Professional Documents
Culture Documents
Memory Fragmentation on
Exchange 2000 Servers
Nino Bilic
Technical Lead
Enterprise Messaging Support
Microsoft Corporation
Agenda
What happens and why?
Why is this a problem and when?
Sample events
What can contribute to the problem?
Incorrect use of the /3GB switch
Virus scanning
Resolving the problem
If all else fails…data collection
2
What Happens and Why?
As Exchange database engine works, it uses
virtual memory dynamically.
Other processes running on the server use
virtual memory too.
Because of the swapping of memory
involved, the virtual memory gets
fragmented.
When we reach a certain level of
fragmentation, we start logging events.
Logging is functionality added in SP1.
3
What Happens and Why? (2)
4
Why Is This a Problem and When?
5
Sample Events
Warning events (logged when less than 32 MB of
contiguous virtual memory space is available):
9
What Can Contribute to the
Problem? (2)
Incorrect use of the /3GB switch (continued)
When the /3GB switch is used in Boot.ini:
On Windows 2000 Server:
User mode 2 GB + Kernel mode 1 GB
On Windows 2000 Advanced Server and
Windows 2000 Datacenter Server:
User mode 3 GB + Kernel mode 1 GB
11
Resolving the Problem
13
Resolving the Problem (3)
Edit the following registry key (only if the
server has more than 1 GB of RAM!):
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control
\Session Manager\HeapDeCommitFreeBlockThreshold=262144
14
Resolving the Problem (4)
Decrease the store database maximum cache
size.
msExchESEParamCacheSizeMax – set it to
the value of “196608” (768 MB).
15
If All Else Fails…Data Collection
If 9582 events are still a problem, the best is
to collect additional data and contact Product
Support Services.
Follow Q317411 to gather the following:
System Monitor logs (also known as Performance
Monitor logs)
Event logs
System information file (WINMSD)
Virtual address dump file
Possibly userdump of the store
16
Additional Resources
Q324118 “XADM: The Extensible Storage
Engine Database Engine Contributes to Virtual
Memory Fragmentation”
Q315407 “XADM: The
‘HeapDecommitFreeBlockThreshold’ Registry
Key”
Q266768 “XSTR: How to Modify the Store
Database Maximum Cache Size”
Q317411 “XADM: How to Gather Data to
Troubleshoot Exchange Virtual Memory
Issues”
Q266096 “XGEN: Exchange 2000 Requires
/3GB Switch with More Than 1 Gigabyte of
Physical RAM”
17
Thank you for joining today’s Microsoft Support
WebCast.