Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

First message send is slow. Please Help!!

Status
Not open for further replies.

madgenius

Programmer
Apr 25, 2002
8
IE
Hi,

We have a simples request and reply set up from an ASP page using a VB DLL to send and receive messages.

On each page load we do a standard MQCONN, MQOPEN, MQPUT, MQGET with a wait on the reply message and then MQCLOSE and MQDISC.

For some reason the first query from the web page takes about 4 or 5 seconds to go through whereas the subsequent queries is taking split seconds. I dont understand this as the same process is being done each time. Is something going to sleep on me? IS there some configuration settiing that I am missing?

Thanks in advance

Frank
 
Often you get slow response on first-time because of overhead in getting channels active, even after going inactive due to lack of traffic.

Garry
 
Well I know it is something to do with the channels going inactive. I have set the Disconnect intervals on the channels to be zero so the channels arent going inactive at all. Is there anything else I can do?
 
You can try changing the batch size on your channels. The channel agents use an algorithm to increase effeciency of the channels - sometimes waiting for something else to land on the transmit queue to package into the current batch instead of sending 2 batches. There have been some discussions about this on Just go there and do a search on batch size...
-Brandon

-----------------------------
Brandon Duncan
IBM Certified MQSeries Specialist, Solutions Expert
Moderator brandon@mqseries.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top