FIX: MSMQ Delays in Sending Messages (241777)
The information in this article applies to:
- Microsoft Message Queue Server (MSMQ) 1.0
This article was previously published under Q241777 SYMPTOMS
Under most circumstances, Microsoft Message Queue Server (MSMQ) applications are only interested in quickly receiving acknowledgement that their messages have been accepted by the local queue manager for delivery to the target queue. Delivery of these small messages on the network may be impacted by TCP nagling, which can be seen by using a network monitoring tool. Note that the nagle algorithm is described in further detail in the "More Information" section of this article.
CAUSE
When sending small messages, the TCP nagle algorithm implements a 200
millisecond delay that slows the delivery of small messages from a computer running MSMQ to the MSMQ target computer.
RESOLUTIONIMPORTANT: This article contains information about modifying the registry. Before you
modify the registry, make sure to back it up and make sure that you understand how to restore
the registry if a problem occurs. For information about how to back up, restore, and edit the
registry, click the following article number to view the article in the Microsoft Knowledge Base:
256986 Description of the Microsoft Windows Registry
For more immediate delivery of small messages, a new MSMQ registry key has been introduced in Windows NT 4.0 Service Pack 6. The following new registry key is of type "REG_DWORD" and is added under the MSMQ parameters:
HKLM\SOFTWARE\Microsoft\MSMQ\Parameters\TCPNoDelay
This key may be set to disable TCP nagling. It has valid values of "0" and "1", with a default of "0" (enable nagling). By default, message queuing enables nagling on the TCP sockets it uses. Enabling nagling here improves overall performance, but it might briefly delay transmission of smaller packets. You can add this entry to the registry with a value of "1" to disable nagling, as the following code illustrates, if the delay is undesirable or unacceptable.
Value Meaning
0 Nagling is enabled.
1 Nagling is disabled.
STATUSThis bug was corrected in Windows NT 4.0 Service Pack 6.
Modification Type: | Major | Last Reviewed: | 6/11/2002 |
---|
Keywords: | kbbug kbMSMQ100fix KB241777 |
---|
|