|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Statistics collection in Message Broker & IIB-v9 |
« View previous topic :: View next topic » |
Author |
Message
|
dextermbmq |
Posted: Mon Mar 28, 2016 12:44 am Post subject: Statistics collection in Message Broker & IIB-v9 |
|
|
Voyager
Joined: 26 Jul 2014 Posts: 77
|
Hello All,
We are having an infrastructure where we have been capturing the stats collected by broker for message processing. We deploy our applications , the broker send the info to a topics and we have subscriber listening to this topic which sends the messages to a Local Queue. There is an application deployed which polls this queue and finally routs the Stats data to a DB Table.We had enabled the Broker level stats in the beginning by issuing the following command ::
mqsichangeflowstats BrokerName -a -c active -g -j -n none -o xml
This ensures that the Broker will publish the stats for all the EGs(-g Apply the change to all execution groups) . ALso it covers all the message flows (-j denotes all message flows).
Now, we noticed that whenever we redeploy different applications(we keep getting new bar files from developers for fixing bugs/enhancing the apps) the Stat Collection stops for those applications.
To resolve this , I had to specifically re-enable the Stats and then restart the corresponding application hosting the message flows using the below command to get the STATS::
mqsichangeflowstats <BROKER_NAME> -a -e <EG NAME> -k <APPLICATION NAME> -c active -j -n none -o xml
POINT 1
-----------
Do we need to reenable the STATS and RESTART THE APPS to get the STATS INFO FLOWING once we have deployed the new application OR IS THERE SOMETHING WRONG WITH MY BROKER AND I NEED TO FLAG IT THROUGH PMR TO IBM ????
POINT2
------------
Now , I fixed the issue by re-enabling the stats for the application and then restarting it. I got the stats info in my DB. The strange this is , whenever I am putting the data , i need to restart the app everytime to see the stats in DB . E.G
Step1 : Deploy the New App
Step 2 : Enable the STats for this APP again
Step 3 :Post the messages for this application to process
NO DB UPDATE WITH STATS INFO
Step 4: Restart the application
DB UPDATE WITH THE STATS CORRESPONDING TO THE MESSAGES SENT FOR PROCESSING in STEP 3
LOOKS GOOD TILL NOW.BUT....!!!!
Step 5 : Post some more messages for this app.
AGAIN NO DB UPDATE WITH STATS INFO
Step 6 : Restart the app once again
DB UPDATE WITH THE STATS CORRESPONDING TO THE MESSAGES SENT IN STEP 6
Thus , why every time I have to resrat my app to get the DB Stats info ???
IIB VERSION : 9004
MB V8 : 8004 |
|
Back to top |
|
 |
vishnurajnr |
Posted: Tue Mar 29, 2016 5:39 am Post subject: |
|
|
 Centurion
Joined: 08 Aug 2011 Posts: 134 Location: Trivandrum
|
As Per Infocenter:
Quote: |
Collecting message flow accounting and statistics data is optional; by default it is switched off. To use this facility, request it on a message flow or execution group basis. The settings for accounting and statistics data collection are reset to the defaults when an execution group is redeployed. Previous settings for message flows in an execution group are not passed on to the new message flows deployed to that execution group. |
Point 2 - You are capturing archive level statistics and it will be captured by default every 60 mins. Either you need to wait till 60 mins or restart the applications.
As Per Infocenter:
Quote: |
Archive data is collected for an interval that you have set for the broker on the mqsicreatebroker or mqsichangebroker command. You can specify an interval in the range 1 through 43200 minutes; the default value is 60 minutes. At the end of this interval, the recorded statistics are written to the output destination and the interval is restarted.
An interval ends and restarts when any of the following events occur, to preserve the integrity of the data that has been collected prior to the event:
The message flow is redeployed
The set of statistics data to be collected is modified
The broker is shut down |
|
|
Back to top |
|
 |
dextermbmq |
Posted: Sat Apr 02, 2016 11:09 pm Post subject: |
|
|
Voyager
Joined: 26 Jul 2014 Posts: 77
|
Hello vishnurajnr
Thanks for the assistance. I implemented a demo app and verified both the points.
Thanks again for the assistance |
|
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
|
|
|
|