|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
network traffic when client waits on MQGET |
« View previous topic :: View next topic » |
Author |
Message
|
yiftah_o |
Posted: Sun Jun 30, 2002 6:42 am Post subject: network traffic when client waits on MQGET |
|
|
Newbie
Joined: 30 Jun 2002 Posts: 9 Location: Raanana, Israel
|
description:
I have a client that connects to a remote queue manager with tcp/ip.
the client is using MQGET when the MQGMO structure has the MQGMO_WAIT flag and WaitInterval=MQWI_UNLIMITED
this should effectively block the client until a message is available in the queue.
questions:
what is the network traffic caused by the client when it's waiting on the queue?
is there a sampling interval I can set?
is it better (for better performance or lower traffic) to sample the queue with the application by multiple, non-waiting, MQGET calls? |
|
Back to top |
|
 |
kolban |
Posted: Sun Jun 30, 2002 7:44 am Post subject: |
|
|
 Grand Master
Joined: 22 May 2001 Posts: 1072 Location: Fort Worth, TX, USA
|
When you issue a client based MQGET, the "socket" connection to MQSeries should be failry quiet. Only when the server determines a message is available, should the data return and hense traffic be generated.
Since TCP/IP is not a connection oriented protocol as it is built on top of IP datagrams. If the server "disappears" because either the network goes down or else the server crashes without control, then the client may block forever as no response may arrive. To resolve this issue, MQSeries has the concept of a heart-beat interval. This means that the MQ Client and the Server "ping" each other periodically. The frequency of the check can be configured on a channel basis. This means that there will be traffic on the connection for a client every heart-beat interval period. The amount of traffic should be quite small. This can be turned off but you run the risk of the client never finding out about the lost server.
In addition, TCP/IP can provide the "keep-alive" technology but that is outside of the scope of MQ. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|