Handling all of your technology needs

Windows Small Business Server [SBS] 2011 / Exchange 2010 Memory Usage Limits

The Microsoft Exchange Information Store service that is a part of Exchange 2010 that is installed with SBS 2011 seems to continually grow in memory usage over time.  To avoid this problem, you can limit the amount of memory Exchange is using.  Note that you must set both a minimum as well as a maximum amount or Exchange will not use your maximum value.

Start by opening ADSIedit - either click Start -> Run -> ADSIedit.msc, or navigate to Start -> All Programs -> Administrative Tools -> ADSI Edit.

Right click the root of the tree view on the left and select Connect To. . . Change the 'Select a well known Naming Context' drop down to 'Configuration'  The other default settings should work just fine.  Just to verify they should look similar to this:
ADSI Connect To

Once connected you will want to navigate to the correct location:  Configuration -> Services -> Microsoft Exchange -> {YOUR Organization Name} -> Administrative Groups -> {YOUR Administrative Group} -> Servers -> {YOUR Server Name} -> InformationStore

Right-click InformationStore, and edit both msExchESEParamCacheSizeMax and msExchESEParamCacheSizeMin. You must set both the min and max values for it to work properly!  The values entered are the amount of pages in KB.  For Exchanage 2007 these are 8KB pages and for Exchange 2010 they are 32KB pages.  See the table at the bottom for calculated values.  In the screenshot below we are using a min of 1GB and a max of 4GB on Exchange 2010.

ADSIEdit InformationStore Properties Dialog Box

After you make the changes restart the Microsoft Exchange Information Store service for the change to become effective.

Memory Size in GB CacheSize Value for Exchange 2010 (32KB pages) CacheSize Value for Exchange for 2007 (8KB pages)
1 32768 131072
2 65536 262144
3 98304 393216
4 131072 524288
6 196608 786432
8 262144 1048576
10 327680 1310720
12 393216 1572864
14 458752 1835008
16 524288 2097152
18 589824 2359296
20 655360 2621440

The formula used to calculate these values are:
Exchange 2010: (Number of GB * 1024 * 1024) / 32 = Target Cache Size
Exchange 2007: (Number of GB * 1024 * 1024) / 8   = Target Cache Size