Author |
Message
|
kash3338 |
Posted: Wed Dec 23, 2009 12:20 am Post subject: Doubt on mqsichangeflowstats command |
|
|
Shaman
Joined: 08 Feb 2009 Posts: 709 Location: Chennai, India
|
Hi,
I need to check the time taken for my flow to process a message. I have a MQinput node, Compute node and a MQOutput node. I need to know the time from the time the message is picked from the IN queue and till the message is sent to OUT queue.
I tried using mqsichangeflowstats command, which has "TotalElapsedTime" in it.
My doubt is, when should i run this command and is this the right way to calculate the time taken by a flow and where does the XML file get generated when i run this command? |
|
Back to top |
|
 |
Gaya3 |
Posted: Wed Dec 23, 2009 12:47 am Post subject: |
|
|
 Jedi
Joined: 12 Sep 2006 Posts: 2493 Location: Boston, US
|
what i understood is you are looking on Monitoring part in Broker Tool- am i correct?
Are you using V6.1 if not you cant do that monitoring part.
if you are planning to use Accounting and Statistics, yes you have to configure the same in broker part.
ftp://ftp.software.ibm.com/software/integration/support/supportpacs/individual/IS11Accounting.pdf
Please search for Accouting and Statistics, we have discussed the same over here. _________________ Regards
Gayathri
-----------------------------------------------
Do Something Before you Die |
|
Back to top |
|
 |
smdavies99 |
Posted: Wed Dec 23, 2009 1:05 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
I think that Doubt is the wrong word to use.
From Wikipedia:-
Quote: |
Doubt, a status between belief and disbelief, involves uncertainty or distrust or lack of sureness of an alleged fact, an action, a motive, or a decision. |
It might be better to use the word Question
Quote: |
A question may be either a linguistic expression used to make a request for information, or else the request itself made by such an expression. This information is provided with an answer.
It seems to me, you are requesting information. |
_________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
Esa |
Posted: Wed Dec 23, 2009 1:56 am Post subject: |
|
|
 Grand Master
Joined: 22 May 2008 Posts: 1387 Location: Finland
|
I wouldn't use o=xml for this purpose but o=usertrace. If you select xml outputformat you will have to register a subscription of statistics data, read the message from a queue. And the data will be in xml which is not very human readable.
Use -s option and you get snapshot data of about 20 seconds of execution time. Send several messages. You will notice that there is a difference between maximum and average elapsed times. My assumption is that the elapsed time of the first message of a batch contains some time used for waiting the message to arrive in the queue. This is why I try to load the input queue with hundreds of messages so that processing of the batch will take more that 40 seconds (set input queue to get inhibited first) This way I get three samples. The one in the middle is the one I trust. |
|
Back to top |
|
 |
mqmatt |
Posted: Wed Dec 23, 2009 2:21 am Post subject: |
|
|
 Grand Master
Joined: 04 Aug 2004 Posts: 1213 Location: Hursley, UK
|
If you want to track the time taken for individual invocations of a flow, then you have a number of options:
1) insert nodes into your flow (start timer/stop timer)
2) event emission, using the audit and monitoring framework
3) user exits
4) a third-party monitoring or tracking tool
Any of these will be better than using accounting and statistics, which is designed for aggregating throughput performance over a period of time, and will be difficult to track for individual flows, as Esa suggests.
(2) might be the easiest for you to implement based on what you're trying to do, but as Gaya3 says, you need to be on 6.1(.0.2). |
|
Back to top |
|
 |
mgk |
Posted: Wed Dec 23, 2009 2:44 am Post subject: |
|
|
 Padawan
Joined: 31 Jul 2003 Posts: 1642
|
You can also add a number 5 to mqmatt's list:
5: Normal usertrace - this gives you time at the flow and node and subnode (in some cases) level. For testing a single message through a single flow, this is often the quickest...
Regards. _________________ MGK
The postings I make on this site are my own and don't necessarily represent IBM's positions, strategies or opinions. |
|
Back to top |
|
 |
Esa |
Posted: Wed Dec 23, 2009 2:49 am Post subject: Re: Doubt on mqsichangeflowstats command |
|
|
 Grand Master
Joined: 22 May 2008 Posts: 1387 Location: Finland
|
kash3338 wrote: |
Hi,
I need to check the time taken for my flow to process a message. |
My interpretation was that kash3338 just needs to know how fast his flow is performing in general. In which case statistics would be the easiest way. |
|
Back to top |
|
 |
|