Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

A message takes longer than expected to be delivered or expires prematurely in Message Queuing 3.0 on Windows Server 2003 Service Pack 1


View products that this article applies to.

Symptoms

On Microsoft Windows Server 2003 Service Pack 1 (SP1) or on a later version of Windows Server 2003, you experience one of the following problems when you try to send a message in Microsoft Message Queuing 3.0:
  • The message takes longer than expected to be delivered.
  • The message expires prematurely and is not delivered.

↑ Back to the top


Cause

The wait time that Message Queuing 3.0 uses to re-establish a connection after the connection has been closed is set in Microsoft Windows Server 2003. This problem occurs because the default wait time has been increased in Windows Server 2003 SP1.

Before SP1, Message Queuing 3.0 would wait 4 seconds before re-establishing a closed connection. After you apply SP1 or a later version of Windows Server 2003, Message Queuing 3.0 waits 60 seconds before re-establishing a closed connection.

↑ Back to the top


Resolution

Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall your operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.

To resolve this problem, change the wait time that Message Queuing 3.0 will use to re-establish a closed connection. The wait time is set in the DWORD
WaitTime
registry entry.

To change the value of the DWORD
WaitTime
registry entry, following these steps:
  1. Click Start, click Run, type regedit, and then click OK.
  2. Locate and then click the following subkey:
    HKEY_LOCAL_MACHINE\Software\Microsoft\MSMQ\Parameters
  3. On the Edit menu, click New, and then click DWORD Value.
  4. Type WaitTime, and then press ENTER.
  5. Right-click WaitTime, and then click Modify.
  6. In the Edit DWORD Value dialog box, type the time in milliseconds that you want for the wait time, and then click OK. For example, type 10000 for 10 seconds.
  7. On the File menu, click Exit.

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

↑ Back to the top


More information

The longer default wait time in Windows Server 2003 SP1 could cause delays when Message Queuing sends messages. This problem is more likely to occur if Message Queuing must re-establish the connection frequently.

In certain cases where messages are using a time-to-reach-queue value or a time-to-be-received value, the longer default wait time could cause a message to expire prematurely. When this problem occurs, the message is not delivered. This problem may occur if the time-to-reach-queue value or the time-to-be-received value is less than 60 seconds.

Note We increased the default wait time in Windows Server 2003 SP1 to prevent Active Directory or Domain Name System (DNS) from been queried too frequently.

↑ Back to the top


Keywords: KB909401, kbprb, kbqfe, kbfix

↑ Back to the top

Article Info
Article ID : 909401
Revision : 4
Created on : 2/1/2006
Published on : 2/1/2006
Exists online : False
Views : 247