|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Channel LSTMSGTI in milliseconds? |
« View previous topic :: View next topic » |
Author |
Message
|
krypton |
Posted: Sun Aug 01, 2010 1:54 am Post subject: Channel LSTMSGTI in milliseconds? |
|
|
 Disciple
Joined: 14 Mar 2010 Posts: 186
|
Hi All,
Is there any way to know the Sender channel msgout time and Receiver Channel msgIn time in milliseconds.
Channels do have attribute LSTMSGTI but it gives time only upto seconds, I am doing a performace evaluation, for the same purpose I needt to know the time in milliseconds.
How our application is working is
A --> MQPUT-> RemoteQ --XMITQ--->SenderChannel(A)-->ReceiverChannel(B)---MQGET(B)
Now, the receiver application will put back the response in the same fashion as above and A will process the message.
There are many time latency in there but I am more concerned about the time betweeen SenderChannelA(request sent from A to B) and ReceiverChannelA(response received from B to A). I want these details at milliseconds level.
Is anyone aware of how to find this time in milliseconds, please help me.
Thanks. |
|
Back to top |
|
 |
fjb_saper |
Posted: Sun Aug 01, 2010 10:14 am Post subject: Re: Channel LSTMSGTI in milliseconds? |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
krypton wrote: |
Hi All,
Is there any way to know the Sender channel msgout time and Receiver Channel msgIn time in milliseconds.
Channels do have attribute LSTMSGTI but it gives time only upto seconds, I am doing a performace evaluation, for the same purpose I needt to know the time in milliseconds.
How our application is working is
A --> MQPUT-> RemoteQ --XMITQ--->SenderChannel(A)-->ReceiverChannel(B)---MQGET(B)
Now, the receiver application will put back the response in the same fashion as above and A will process the message.
There are many time latency in there but I am more concerned about the time betweeen SenderChannelA(request sent from A to B) and ReceiverChannelA(response received from B to A). I want these details at milliseconds level.
Is anyone aware of how to find this time in milliseconds, please help me.
Thanks. |
Face it now like a man... you're not going to.
What you can get at best is time from the put of the request to time of the get of the response, and this needs to be captured by your requesting application. Besides the obvious problems of time synchronization between boxes A and B, you are not looking at the right measurements.
- channel time => what you are really after here is network time and that can be measured using other techniques like network sniffers etc...
However and UNDER the ASSUMPTION that the put to commit and get times are negligible, also ASSUMING that the boxes enjoy the benefit of timesync (ntp service) you can determine the difference between get time and put time down to 0.01 seconds. This is done by reading the system timestamp right after the get and subtracting the message timestamp from it. Of course best served when all times and calculations are UTC, message size is small ( a few kb), and one (or more) consumer process is (are) waiting to consume the message immediately.
- If you want to look at the full monty (request / reply) you do not have to worry much about time discrepancy between boxes as all measurements will be taken within the same box. As before make sure you use UTC time coordinates (it does make things easier... especially elapsed time display). The downside here is that you are going to look at a mean time for network transit. Potentially you could have a significant lag difference between the 2 servers, either on the request path or on the response path. And please bear in mind that a significant difference here may be in the order of 50 ms or more.
As a frame of reference we do round trip from NJ to FL via MPLS and VPN in about 150 ms average for message from 10 to 100k. Please remember that individual mileage will vary dependind on your network and horsepower...
Have fun  _________________ MQ & Broker admin |
|
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
|
|
|
|