Author |
Message
|
Vitor |
Posted: Thu Nov 15, 2012 11:25 am Post subject: WMB Resource Statistics |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
WMB 7.0.0.3 running on Solaris.
A project is attempting to use Resource Statistics to determine resource usage by their flows; specifically (but not limited to) JVM usage & ODBC activity.
They've discovered that, as clearly indicated here, their monitoring application is getting XML "too frequently":
Quote: |
An application that subscribes to a publication, in the form of an XML message, that is published by the broker every 20 seconds |
They want a longer reporting interval to 20 seconds. I can't find any way to vary this; I'd initially thought that mqsichangebroker -v controlled this but research indicates that's the accounting reporting period.
Before I recommend that they suck it up and process the XML every 20 seconds like good little developers, does anyone have any brilliant ideas / cunning plans / undetectable murder strategies?
Constraints:
- No monitoring software. The site already has some, published by NeverHeardOfThem Software Inc, which is worthless generally and doublly so in this specific instance
- No use of MBExplorer. Connecting that to the queue manager will (according to the MQ admins) cause the skies to turn to fire, the seas to turn to blood and a swarm of locusts to devour the building. Hence the use of a subscribing app. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
lancelotlinc |
Posted: Thu Nov 15, 2012 11:48 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
One idea: Have a second message flow collect the 20 second reports and aggregate the data, then publish a summary report at the desired interval. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
mgk |
Posted: Thu Nov 15, 2012 11:53 am Post subject: |
|
|
 Padawan
Joined: 31 Jul 2003 Posts: 1642
|
One other idea: just unsubscribe! After getting a publication unsubscribe your app and then recubscribe after your desired longer interval. The broker will keep totaling up the stats for you in the background (for the ones that are cumulative) so you should not miss anything vital...
Kind 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 |
|
 |
Vitor |
Posted: Thu Nov 15, 2012 1:49 pm Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
mgk wrote: |
The broker will keep totaling up the stats for you in the background (for the ones that are cumulative) so you should not miss anything vital...  |
Ah......  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
kash3338 |
Posted: Fri Nov 16, 2012 12:20 am Post subject: |
|
|
Shaman
Joined: 08 Feb 2009 Posts: 709 Location: Chennai, India
|
mgk wrote: |
After getting a publication unsubscribe your app and then recubscribe after your desired longer interval. |
Can you please explain how to do this? |
|
Back to top |
|
 |
Esa |
Posted: Fri Nov 16, 2012 1:01 am Post subject: |
|
|
 Grand Master
Joined: 22 May 2008 Posts: 1387 Location: Finland
|
mgk wrote: |
The broker will keep totaling up the stats for you in the background (for the ones that are cumulative) so you should not miss anything vital...
|
Unless some other application in subscribing to the same topic, I guess? |
|
Back to top |
|
 |
mgk |
Posted: Fri Nov 16, 2012 1:41 am Post subject: |
|
|
 Padawan
Joined: 31 Jul 2003 Posts: 1642
|
Quote: |
Unless some other application in subscribing to the same topic, I guess? |
.
No, the Broker will send every 20 seconds to every app that is subscribed...
Kind 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 |
|
 |
Vitor |
Posted: Fri Nov 16, 2012 5:34 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
kash3338 wrote: |
mgk wrote: |
After getting a publication unsubscribe your app and then recubscribe after your desired longer interval. |
Can you please explain how to do this? |
1) Subscribe
2) Consume subscription
3) Unsubscribe
4) Pause for the desired interval
5) Repeat from 1)
Clearly you'd need to flesh the details out a bit in the code..... _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Esa |
Posted: Fri Nov 16, 2012 6:33 am Post subject: |
|
|
 Grand Master
Joined: 22 May 2008 Posts: 1387 Location: Finland
|
If you subscribe, consume and unsubscribe with a minutes interval, arey you not going to miss two of the three 20 s samples? |
|
Back to top |
|
 |
mgk |
Posted: Fri Nov 16, 2012 1:21 pm Post subject: |
|
|
 Padawan
Joined: 31 Jul 2003 Posts: 1642
|
Quote: |
If you subscribe, consume and unsubscribe with a minutes interval, arey you not going to miss two of the three 20 s samples? |
No, not for the stats that are cumulative...
Kind 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 |
|
 |
kash3338 |
Posted: Sat Nov 17, 2012 4:21 am Post subject: |
|
|
Shaman
Joined: 08 Feb 2009 Posts: 709 Location: Chennai, India
|
Vitor wrote: |
3) Unsubscribe
4) Pause for the desired interval
Clearly you'd need to flesh the details out a bit in the code..... |
Actually my question was more specific to know how this can be achieved through code?
How can Unsubscribe from a topic and then again set the Subscription from code? The fourth point has already had so many discussions I guess. |
|
Back to top |
|
 |
Senthamizh |
Posted: Wed Nov 21, 2012 8:15 am Post subject: |
|
|
Apprentice
Joined: 21 Dec 2009 Posts: 47
|
kash3338 wrote: |
How can Unsubscribe from a topic and then again set the Subscription from code? |
With the help of psc commands set in MQRFH2 folder. |
|
Back to top |
|
 |
|