5 July 2010

Set Maximum Memory Cache Size for store.exe on Exchange Server 2007

You can set a limit on the maximum amount of memory that an Exchange Server 2007 mailbox server or mailbox cluster is allowed to use (store.exe). Obviously, if you have just a few users and you have a 12/16GB RAM server, the mailbox server will use pretty much all of it, which is a good thing as we have learned ;-). This can however cause issues with other services on the server and similar if the memory usage increases to 99% or even 100%.

To limit the maximum cache that the mailbox server/cluster can make use of you will need to use ADSIEdit. You can get this from the Windows Server 2003 support tools.

When connecting to AD via ADSIEdit, you will need ensure that you select the Configuration container and then go to:

Configuration->Services->Microsoft Exchange->(Your Organization name)->Administrative Groups->Exchange Administrative Group->Servers->(Your Server Name)->Information Store

Right click on CN=Information Store, then choose 'Properties' and look for the msExchESEParamCacheSizeMax entry to limit the max size.

The limit represents the number of 8KB (8192) pages to allocate. This will need to be set to an exact multiple of 8192.

Example: If you want to set the MAX size to 10GB. Convert that into KBs(10GB = 10485760 KB) and devide that by 8(10485760/8 = 1310720) and keep that value in msExchESEParamCacheSizeMax.

See:
http://technet.microsoft.com/en-us/library/bb691304%28EXCHG.80%29.aspx

Allow your Active Directory to replicate the changes and then restart the Information Store.

Official sources:
http://technet.microsoft.com/en-us/library/bb691304%28EXCHG.80%29.aspx

No comments: