ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » WMB Resource Statistics

Post new topic  Reply to topic
 WMB Resource Statistics « View previous topic :: View next topic » 
Author Message
Vitor
PostPosted: Thu Nov 15, 2012 11:25 am    Post subject: WMB Resource Statistics Reply with quote

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
View user's profile Send private message
lancelotlinc
PostPosted: Thu Nov 15, 2012 11:48 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
mgk
PostPosted: Thu Nov 15, 2012 11:53 am    Post subject: Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Thu Nov 15, 2012 1:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
kash3338
PostPosted: Fri Nov 16, 2012 12:20 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Esa
PostPosted: Fri Nov 16, 2012 1:01 am    Post subject: Reply with quote

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
View user's profile Send private message
mgk
PostPosted: Fri Nov 16, 2012 1:41 am    Post subject: Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Fri Nov 16, 2012 5:34 am    Post subject: Reply with quote

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
View user's profile Send private message
Esa
PostPosted: Fri Nov 16, 2012 6:33 am    Post subject: Reply with quote

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
View user's profile Send private message
mgk
PostPosted: Fri Nov 16, 2012 1:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
kash3338
PostPosted: Sat Nov 17, 2012 4:21 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Senthamizh
PostPosted: Wed Nov 21, 2012 8:15 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » WMB Resource Statistics
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.