Export (0) Print
Expand All
Expand Minimize

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:

HKEY_LOCAL_MACHINE\Software\Microsoft\Exchange\MailMsg\MaxMessageObjects

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.

importantImportant:
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.

  1. Start a registry editor such as Regedit.exe or Regedt32.exe.

  2. Navigate to: HKLM\Software\Microsoft\Exchange

  3. Right-click the Exchange key, and then click New Key. Name the new key MailMsg.

  4. Right-click the MailMsg key, and then click New DWORD Value.

  5. Right-click the new value, click Rename, and then type MaxMessageObjects.

  6. 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.

  7. 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).

 
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft