Author |
Message
|
mqnomad |
Posted: Thu Mar 18, 2010 12:49 pm Post subject: Is the impact of collecting mqi stats on a V.6 qmgr known |
|
|
Acolyte
Joined: 18 Mar 2010 Posts: 53
|
I can see this could be an "it depends" topic ... tried another site but no responses after 40 views.
Performing a healthcheck on an MQ production application. Would like to alter the qmgr to collect statistics, for instance:
echo "ALTER QMGR STATINT(259200)" | runmqsc
echo "Setting qmgr MQI statistics collection on"
echo "ALTER QMGR STATMQI(ON)" | runmqsc
Is there any documentation, or does anyone know if there is a significant impact when running stats collection?
Existing host does not appear under stress and there is no response time sla - host runs broker with about 15 flows, single qmgr.
Appreciate any comments/experiences. |
|
Back to top |
|
 |
mvic |
Posted: Thu Mar 18, 2010 3:07 pm Post subject: Re: Is the impact of collecting mqi stats on a V.6 qmgr know |
|
|
 Jedi
Joined: 09 Mar 2004 Posts: 2080
|
mqnomad wrote: |
Existing host does not appear under stress and there is no response time sla - host runs broker with about 15 flows, single qmgr. |
Rule number one - keep the statistics, accounting and event queues well drained.
If you keep said queues well drained, I doubt you will see any observable performance impact on a system such as you describe.
You should be able to drain the queue effectively using frequent runs of the provided sample program "amqsmon". The source for it is available so you can develop your own if you like. |
|
Back to top |
|
 |
mqnomad |
Posted: Thu Mar 18, 2010 8:45 pm Post subject: |
|
|
Acolyte
Joined: 18 Mar 2010 Posts: 53
|
Thank you for the response. What would you consider a good interval to run amqsmon? We only need to run statistics - no accounting.
The intent was to capture daily stats, so run RESET QMGR TYPE (STATISTICS) once a day, followed by the amqsmon. Is that frequent enough, or should the interval be smaller? |
|
Back to top |
|
 |
mvic |
Posted: Fri Mar 19, 2010 4:53 am Post subject: |
|
|
 Jedi
Joined: 09 Mar 2004 Posts: 2080
|
mqnomad wrote: |
The intent was to capture daily stats, so run RESET QMGR TYPE (STATISTICS) once a day, followed by the amqsmon. Is that frequent enough, or should the interval be smaller? |
As always, it depends on how the system is being used. Use runmqsc to check the CURDEPTH on the queue every minute. This way you'll get a picture of the rate messages are being added.
Depending on what you see, you might choose to run amqsmon (say) every minute or two, ot 10, or 15... |
|
Back to top |
|
 |
mqnomad |
Posted: Fri Mar 19, 2010 12:48 pm Post subject: |
|
|
Acolyte
Joined: 18 Mar 2010 Posts: 53
|
Thank you mvic ... hmm, not what I had in mind. I need to have a chart of daily queue usage so I was hoping to gather queue counts per 24-hour period. |
|
Back to top |
|
 |
mqjeff |
Posted: Fri Mar 19, 2010 1:05 pm Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
running reset qstats once a day, through amqsmon, will give you a daily snapshot of the usage.
But it will only give you an aggregate 24 hour average. It won't give you anything like "traffic was very heavy at 10 am but light at 3 pm". It will tell you "traffic was heavy on Monday but light on Saturday". You probably already knew that much...  |
|
Back to top |
|
 |
mvic |
Posted: Fri Mar 19, 2010 3:38 pm Post subject: |
|
|
 Jedi
Joined: 09 Mar 2004 Posts: 2080
|
mqnomad wrote: |
Thank you mvic ... hmm, not what I had in mind. I need to have a chart of daily queue usage so I was hoping to gather queue counts per 24-hour period. |
You can drain the stats queue as seldom or as often as you like. But there might be problems if you let the queues get too deep. Try it out...
As for wanting daily numbers, just add up all the numbers you measured with amqsmon over the day.
As I said, try it out.. take a look at the amqsmon output.. it should be quite quick to see if it's going to work for you. |
|
Back to top |
|
 |
|