Author |
Message
|
svu |
Posted: Tue Jul 05, 2011 2:14 am Post subject: wmq statistics: strange results |
|
|
Voyager
Joined: 30 Jan 2006 Posts: 99
|
After the IBM training, using WMQ stats and accounting looked easy and trivial. But the real life is different from those simple examples...
I am trying to get the stats from one QM. The results are strange.
First, only a subset of queues is represented. I KNOW that some queue is used (the messages are coming through the MB working on that QM, there is logging in the message flows). But that queue is not represented in the stats at all. Why? The statistics settings on that queue are default (i.e. "Queue manager"), same as on other queues.
Also, the results in WMQ Explorer (using MS0P) are different from the output of amqsmon utility. The WMQE is really using all available stats records (from the start of logging till now - I just did "Flush statistics"). While the command line utility restricts itself till some fixed IntervalEndTime (about an hour ago from now). The command line does not impose time restrictions:
Code: |
./amqsmon -m QM -t statistics -b |
Is there anything substantial I am missing?
More general question: is there some source of good practices of using WMQ stats (for the performance troubleshooting and such).
Thanks |
|
Back to top |
|
 |
zpat |
Posted: Tue Jul 05, 2011 3:01 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
You can set the time range on MS0P as well. |
|
Back to top |
|
 |
svu |
Posted: Tue Jul 05, 2011 3:03 am Post subject: |
|
|
Voyager
Joined: 30 Jan 2006 Posts: 99
|
zpat wrote: |
You can set the time range on MS0P as well. |
Yes, I know. But for now I want to see the full stats - and MS0P does it. While amqmsmon shows only some subset, even though I do not ask for restrictions.
Additional oddity - the stats does not include DataFlowEngine. It only includes bipbroker with the single queue SYSTEM.BROKER.DEPLOY.REPLY |
|
Back to top |
|
 |
svu |
Posted: Tue Jul 05, 2011 5:11 am Post subject: Re: wmq statistics: strange results |
|
|
Voyager
Joined: 30 Jan 2006 Posts: 99
|
svu wrote: |
Also, the results in WMQ Explorer (using MS0P) are different from the output of amqsmon utility. |
What an idiot... amqsmon represents all stat intervals separately, while WMQ Explorer summarizes. I just should have scrolled down the file. So this is closed issue.
But the issue with the queue remains - why don't I see the queue that was actively used? |
|
Back to top |
|
 |
zpat |
Posted: Tue Jul 05, 2011 6:33 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
Which stats have you switched on? Try the accounting options at QM level. |
|
Back to top |
|
 |
svu |
Posted: Tue Jul 05, 2011 6:42 am Post subject: |
|
|
Voyager
Joined: 30 Jan 2006 Posts: 99
|
zpat wrote: |
Which stats have you switched on? Try the accounting options at QM level. |
I have MQI and Queue statistics on. Channel stats is "Medium".
The accounting parameters are all off. I thought accounting was kind of separate (controlling separately, separate queue, separate reading). Am I wrong? |
|
Back to top |
|
 |
svu |
Posted: Wed Jul 06, 2011 1:06 am Post subject: |
|
|
Voyager
Joined: 30 Jan 2006 Posts: 99
|
Strangely, after I restarted the broker, I got all queues visible in the statistics. Why is that so? I could not find anything relevant in the docs.
Does it mean than statistics cannot properly handle queues that were already open when the statistics got enabled? |
|
Back to top |
|
 |
zpat |
Posted: Wed Jul 06, 2011 1:42 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
Stats are collected only when queues are (re) opened after the point in time when the stats option is enabled. |
|
Back to top |
|
 |
svu |
Posted: Wed Jul 06, 2011 1:52 am Post subject: |
|
|
Voyager
Joined: 30 Jan 2006 Posts: 99
|
zpat wrote: |
Stats are collected only when queues are (re) opened after the point in time when the stats option is enabled. |
Where could I read about that? I did not find that on http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/topic/com.ibm.mq.csqzax.doc/mo13260_.htm
Right. Just found
Code: |
Statistics messages are generated only for queues which are opened after statistics collection has been enabled. |
Thank you! Surprisingly enough, the guy who mentored the IBM training course did not mention that (IIRC) |
|
Back to top |
|
 |
|