Problem solve Get help with specific problems with your technologies, process and projects.

Use Performance Monitor to detect Exchange 2003 message queue problems

Discover how to use the Performance Monitor tool in Exchange Server 2003 to set SMTP queue email message threshold values and prevent mail flow issues.

Even in a properly functioning Exchange 2003 SMTP queue, corrupt messages can become stuck and cause mail flow issues. Performance Monitor (Perfmon) is a tool within Exchange Server Setup that can be configured to alert administrators when any SMTP queues in an Exchange 2003 environment reach a designated threshold. By monitoring the server for corrupt messages or denial-of-service attacks, administrators can circumvent SMTP message queue problems and email delivery failures. This tip by Exchange MVP Brien Posey explains how.

If Exchange Server 2003 SMTP queues are working properly, corrupt messages occasionally may become stuck in a queue. This can cause the queue to fill up and prevent mail flow until the damaged messages are removed. The process of removing damaged email from an SMTP queue is simple; however, Exchange Server doesn't alert administrators when a message becomes stuck. Typically, delivery of user email simply stops.

Microsoft and other third-party vendors offer solutions that detect message queue back-up failures. Such applications tend to be expensive and beyond the scope of small or medium-sized enterprises (SMBs). An alternative is to configure the Performance Monitor to alert you of message queue problems.

When Exchange Server is initially deployed, the Setup program installs various Exchange-specific Performance Monitor objects. Similar to the default counters in Microsoft Windows, these counters enable you to measure different aspects of Exchange Server performance.

The Send Queue Size counter monitors Exchange Server message queues. This tool is located within the MSExchangeIS Mailbox performance object. But before you can configure the server to detect message queue problems, you must monitor this counter to determine the maximum number of messages per queue under normal circumstances. Watch this counter during periods of peak usage. Additionally, this counter is storage group-specific, so you will have a separate instance of the counter for each storage group.

More on Exchange 2003 mail flow:
How to use SMTP queues to troubleshoot mail flow

Troubleshoot mail flow issues after an Exchange 2003 upgrade

Microsoft Exchange Troubleshooting Assistant

Once you've determined average queue length, you decide what value might indicate queue problems. For example, if there are 20 messages in the queue every Monday at 8 a.m ., you might conclude that 40 messages in the queue would indicate a problem. Whatever value you decide on, be sure to leave some room for unexpected usage spikes and future business growth.

Once you've determined a threshold value, configure the Performance Monitor to trigger an alert if values exceeded this level:

  1. Enter the Perform command at the Run prompt to open the Performance Monitor console.
  2. Navigate through the console tree to Performance Logs and Alerts -> Alerts.
  3. Right click on the Alerts container and choose New Alert Settings from the menu.
  4. When prompted for a name for the new alert, enter Send Queue Alert.
  5. Enter the words Alert if 40 Messages into the Comment field of the properties sheet and click Add (Figure 1).
  6. Exchange 2003 Performance Monitor
    Figure 1. Set the threshold value of messages in the queue using the Performance Monitor console.

  7. On the following screen, choose the MSExchangeIS Mailbox performance object.
  8. Select the Send Queue Size counter.
  9. Select the storage group that you want to monitor, as shown in Figure 2.
  10. MSExchangeIS Mailbox/Send Queue Size counter Figure 2. Configure the MSExchangeIS Mailbox/Send Queue Size counter to monitor a certain storage group.

  11. Click Add.
  12. Click Close.
  13. Set the following dialog box to send an alert when a value is over the set threshold value (Figure 3).
  14. Exchange 2003 Performance Monitor counter Figure 3. Configure Windows to send an alert when the counter's value is over 40.

    Now you should set the sample interval to a higher threshold number to minimize the affect that monitoring has on the server's performance.

  15. Select the Action tab.
  16. Select the Send A Network Message To checkbox.
  17. Enter your username in the space provided (Figure 4).
  18. Exchange 2003 queue threshold values
    Figure 4. Configure Windows to send a message when queues exceed set threshold values.

  19. Click OK.
  20. Right click on the new alert within the Alerts container and confirm that it has started.

About the author: Brien M. Posey, MCSE, is a four-time recipient of Microsoft's Most Valuable Professional Award for his work with Windows Server, Internet Information Server (IIS) and Exchange Server. Brien has served as CIO for a nationwide chain of hospitals and healthcare facilities, and was once a network administrator for Fort Knox. You can visit Brien's personal Web site at www.brienposey.com.

Do you have comments on this tip? Let us know.

Please let others know how useful this tip was via the rating scale below. Do you know a helpful Exchange Server, Microsoft Outlook or SharePoint tip, timesaver or workaround? Email the editors to talk about writing for SearchExchange.com.

Dig Deeper on Exchange Server setup and troubleshooting

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchServerVirtualization

SearchCloudComputing

SearchSQLServer

SearchEnterpriseDesktop

SearchVirtualDesktop

Close