The SMTP MaxMessageObjects registry parameter has been changed from its default
[This topic is intended to address a specific issue called out by the Exchange Server Analyzer Tool. You should apply it only to systems that have had the Exchange Server Analyzer Tool run against them and are experiencing that specific issue. The Exchange Server Analyzer Tool, available as a free download, remotely collects configuration data from each server in the topology and automatically analyzes the data. The resulting report details important configuration issues, potential problems, and nondefault product settings. By following these recommendations, you can achieve better performance, scalability, reliability, and uptime. For more information about the tool or to download the latest versions, see "Microsoft Exchange Analyzers" at http://go.microsoft.com/fwlink/?linkid=34707.]
Topic Last Modified: 2005-11-18
The Microsoft® Exchange Server Analyzer Tool reads the following registry entry to determine the maximum number of mail messages that the system can allocate:
If the Exchange Server Analyzer finds the value for MaxMessageObjects is more than 0, a non-default configuration message is displayed.
When the queue contains the maximum number of messages, no additional inbound messages are accepted by SMTP. Each mail message resident in the SMTP queue uses at least 4 kilobytes (KB) of memory; therefore, you can experience a low memory situation with a very large queue.
The MaxMessageObjects value is not present by default, and the maximum number of messages is set to 100,000. Setting MaxMessageObjects lower reduces the maximum number of messages that can reside in the queue, thereby decreasing the maximum memory footprint for SMTP. After this limit is reached, each SMTP connection made to the server will return with an out of memory error.
This article contains information about editing the registry. Before you edit the registry, make sure you understand how to restore the registry if a problem occurs. For information about how to restore the registry, view the "Restore the Registry" Help topic in Regedit.exe or Regedt32.exe.
To set a limit on the number of SMTP messages that may be queued
Start a registry editor such as Regedit.exe or Regedt32.exe.
Navigate to: HKLM\Software\Microsoft\Exchange
Right-click the Exchange key, and then click New Key. Name the new key MailMsg.
Right-click the MailMsg key, and then click New DWORD Value.
Right-click the new value, click Rename, and then type MaxMessageObjects.
Double-click the MaxMessageObjects value, and then set it to the maximum number of messages that you want to be in queues at any time. Unless you need to process more messages, it is recommended that you use a maximum value of 100,000.
Exit the registry editor and restart the Simple Mail Transfer Protocol (SMTP) service for the change to take effect.
Before you edit the registry, and for information about how to edit the registry, see the Microsoft Knowledge Base article 256986, "Description of the Microsoft Windows Registry" (http://go.microsoft.com/fwlink/?LinkId=3052&kbid=256986).
For more information about setting limits on messages in queues, see the Knowledge Base article 258748, "How to set a limit on the number of SMTP messages in queues" (http://go.microsoft.com/fwlink/?linkid=3052&kbid=258748).