HOWTO: Optimize MSMQ Performance
ID: Q199428
|
The information in this article applies to:
-
Microsoft Message Queue Server version 1.0
SUMMARY
The speed with which your MSMQ Enterprise operates is largely dependent upon physical factors such as hardware, bandwidth, and so forth. It is also largely dependent on how your MSMQ applications are written. However, you can also optimize MSMQ performance through the operating system.
MORE INFORMATION
On a Windows NT computer, right-click on My Computer, click Properties, click the Performance tab, and make sure the Application Performance Boost is set to None. On the Performance tab you can also increase the size of the paging file. Refer to the Windows NT Performance Monitor Help to determine if your computer is experiencing excessive paging.
If your computer has multiple drives, use the MS Message Queue applet in the Control Panel to select locations for the Message Files folder and Message Logger folder. For optimal performance specify separate drives for the Message Files folder and Message Logger folder. If your computer uses disk striping with parity (RAID 5), specify that your Message Files folder and Message Logger folder are on the striped drive.
Putting the MQIS database files on different hard drives (that is, not on the drives used for messages files) also improves performance because disk activity for MQIS queries and messaging can be done in parallel. For large MQIS database (that is, much larger than the default 80/20), separating the drives used for the database data file and log file might also improve performance.
Be aware that auditing MSMQ operations and users from MSMQ Explorer will have a significant negative impact on MSMQ performance. The negative performance impact of using auditing largely depends on your specific security requirements. However, you can enable and disable auditing at run time using MSMQ Explorer and you can fine-tune it to your specific needs. You should do performance benchmarks in a lab environment on all proposed configurations prior to deployment.
You should perform performance benchmarks prior to using MSMQ and again when both MSMQ and your application are running. An optimaly designed MSMQ application requires only a few percent more average CPU processor utilization than without the MSMQ application running.
You can use Performance Monitor to monitor MSMQ Queue, MSMQ Service, and MSMQ IS objects and their counters.
REFERENCES
Microsoft Message Queues Server Administration Guide
Additional query words:
MQGen MQRouting
Keywords : kbMSMQ100
Version : winnt:1.0
Platform : winnt
Issue type : kbhowto