Author |
Message
|
Noisette |
Posted: Tue Dec 18, 2012 6:03 pm Post subject: Finding queue depths |
|
|
Novice
Joined: 20 Nov 2012 Posts: 13
|
Hello,
MQ newbie here.
Are there any tools or an API available to measure the depth of an MQ queue? I'd like to set up a job to regularly poll a number of version 7.5 queues and find out how many messages are in them in order to measure performance of my system.
Thanks in advance for any assistance. |
|
Back to top |
|
 |
mvic |
Posted: Tue Dec 18, 2012 8:06 pm Post subject: Re: Finding queue depths |
|
|
 Jedi
Joined: 09 Mar 2004 Posts: 2080
|
|
Back to top |
|
 |
zpat |
Posted: Wed Dec 19, 2012 12:30 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
Look at PCF messages.
However look through the list of MQ support pacs - there is likely to be something you can use or adapt.
Do you want to keep historical data?
What do you want to happen then the queue depth reach a certain value?
Are you just looking for something to look at?
MO71 can automatic refresh the display at intervals and has a hugely customisable range of displays and filters that can be set up. |
|
Back to top |
|
 |
Vitor |
Posted: Wed Dec 19, 2012 3:26 am Post subject: Re: Finding queue depths |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Noisette wrote: |
I'd like to set up a job to regularly poll a number of version 7.5 queues and find out how many messages are in them in order to measure performance of my system. |
I'd have thought you'd be more interested in how many messages your system has processed (enqueue / dequeue rates) rather than how many messages happen to be in a queue at a given point in time.
Consider: Your queue is empty at the start of the business day. One hour in you measure the depth and there are 1000 messages in it. If that queue received 1000 in that hour it's a crisis because the reading app has crashed. If it received 3000 it's an issue, 10,000 it's not so bad & 100,000 it's doing fairly well. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
gbaddeley |
Posted: Wed Dec 19, 2012 2:56 pm Post subject: Re: Finding queue depths |
|
|
 Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 Location: Melbourne, Australia
|
Noisette wrote: |
Hello,
MQ newbie here.
Are there any tools or an API available to measure the depth of an MQ queue? I'd like to set up a job to regularly poll a number of version 7.5 queues and find out how many messages are in them in order to measure performance of my system.
Thanks in advance for any assistance. |
Welcome to the world of MQ. The "MQINQ" API allows a current queue depth to be inquired. The "ideal" state of MQ is that all application queue depths are zero!
What is your requirement to measure performance? Do you want to detect consumer applications that are unable to keep up with the volume of incoming messages? There are many monitoring solutions available for MQ. _________________ Glenn |
|
Back to top |
|
 |
Noisette |
Posted: Thu Dec 20, 2012 12:36 pm Post subject: |
|
|
Novice
Joined: 20 Nov 2012 Posts: 13
|
Thanks to all for your thoughts.
This project involves upgrading MQ from version 6 to 7.5, as well as transporting everything over to a different version of WebLogic. As such, we want to be able to compare performance of the current system and a test version of the new configuration to indicate that there's no degradation.
Whilst I agree that MQ is just a vessel for messages and it's other stuff which is doing the processing, I'm investigating whether it's easier for me to write a wee script to periodically measure the depth of queues to get an idea of performance. |
|
Back to top |
|
 |
mvic |
Posted: Thu Dec 20, 2012 2:27 pm Post subject: |
|
|
 Jedi
Joined: 09 Mar 2004 Posts: 2080
|
Noisette wrote: |
I'm investigating whether it's easier for me to write a wee script to periodically measure the depth of queues to get an idea of performance. |
Supposing you find the queues are, on average, deeper, what would you do? Supposing you find they are less deep, what would you do? |
|
Back to top |
|
 |
|