Author |
Message
|
BBM |
Posted: Thu Mar 08, 2007 8:25 am Post subject: Measuring enqueue and dequeue rates |
|
|
Master
Joined: 10 Nov 2005 Posts: 217 Location: London, UK
|
Hi,
Does anyone know of a quick and easy way to measure enqueue and dequeue rates on a particular queue on MQ for Windows v6.0?
I've had a look at the support packs and can't seem to find anything.
The perfmon counters are also far too unreliable...
Any help appreciated as always..
Cheers
BBM |
|
Back to top |
|
 |
Michael Dag |
Posted: Thu Mar 08, 2007 10:29 am Post subject: |
|
|
 Jedi Knight
Joined: 13 Jun 2002 Posts: 2607 Location: The Netherlands (Amsterdam)
|
turn on MONQ via ALTER QLOCAL
use DIS QSTATUS(yourQueue) TYPE(QUEUE)
it gives you some information and message age in seconds...
don't know what to make of QTIME yet...  _________________ Michael
MQSystems Facebook page
Last edited by Michael Dag on Thu Mar 08, 2007 11:37 am; edited 1 time in total |
|
Back to top |
|
 |
dkeister |
Posted: Thu Mar 08, 2007 11:34 am Post subject: |
|
|
Disciple
Joined: 25 Mar 2002 Posts: 184 Location: Purchase, New York
|
Can you give a little more information on what you need. Is it for a short period of time? Is it in a production or test environment? How accurate do you need to be?
I might have something that helps but is geared to a development environment. It shows a timeline and the queue depth at an interval you specify. _________________ Dean Keister |
|
Back to top |
|
 |
jsware |
Posted: Fri Mar 09, 2007 12:29 am Post subject: Re: Measuring enqueue and dequeue rates |
|
|
 Chevalier
Joined: 17 May 2001 Posts: 455
|
BBM wrote: |
Does anyone know of a quick and easy way to measure enqueue and dequeue rates on a particular queue on MQ for Windows v6.0? |
If you have a monitoring tool such as QPasa, it uses the RESET QSTATS PCF call to retrieve the enqueue/dequeue count. It even converts this to a rate for you.
Its easy to convert this to a rate yourself by dividing by the sample interval. E.g. enqueue of 10 in 30 seconds = 10/0.5 = 20/minute. Thus you can also use MQMON (MO071 support pack) to issue reset qstats commands and return the count. If you set the auto refresh interval (e.g. to 60 secs), you can see the rate per minute. _________________ Regards
John
The pain of low quaility far outlasts the joy of low price. |
|
Back to top |
|
 |
BBM |
Posted: Fri Mar 09, 2007 1:39 am Post subject: |
|
|
Master
Joined: 10 Nov 2005 Posts: 217 Location: London, UK
|
Hi,
Thanks for the replies. We are conducting an offsite proof of concept for a new application. We currently use Qpasa to do our benchmarking, but since this is a client site we do have the luxury of being able to set up the Qpasa infrastructure (database etc).
We only need to run the tests for a couple of weeks to prove throughput is constant and at the level we require.
We are putting messages onto a queue using a test harness and removing them using the new application. We want to measure the dequeueing in particular.
Qpasa would be ideal but as mentioned, is not feasible in this case.
Thanks
BBM |
|
Back to top |
|
 |
fjb_saper |
Posted: Fri Mar 09, 2007 4:07 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
BBM wrote: |
Hi,
Thanks for the replies. We are conducting an offsite proof of concept for a new application. We currently use Qpasa to do our benchmarking, but since this is a client site we do have the luxury of being able to set up the Qpasa infrastructure (database etc).
We only need to run the tests for a couple of weeks to prove throughput is constant and at the level we require.
We are putting messages onto a queue using a test harness and removing them using the new application. We want to measure the dequeueing in particular.
Qpasa would be ideal but as mentioned, is not feasible in this case.
Thanks
BBM |
Talk with MQSoftware about the licensing. May be you can just deploy the agents at the client site and hook them up to your main monitoring for the time of the test. You could then remove the agents again....
Enjoy  _________________ MQ & Broker admin |
|
Back to top |
|
 |
BBM |
Posted: Fri Mar 09, 2007 6:22 am Post subject: |
|
|
Master
Joined: 10 Nov 2005 Posts: 217 Location: London, UK
|
Thanks for that FJB, unfortunately the client site is very unlikely to open their firewall for this.
They are big on security.
Cheers
BBM |
|
Back to top |
|
 |
jefflowrey |
Posted: Fri Mar 09, 2007 6:29 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
You can put together a relatively small and light script in Perl to issue reset queue stats on a regular basis and write out to a file.
The Perl modules provide excellent support for sending and processing PCF messages in a very native way.
For example, to reset queue stats...
Code: |
use MQSeries;
use MQSeries::Command;
my $command = MQSeries::Command->new( QueueManager => $qmgrName, )
or die("Unable to instantiate command object\n");
my $attr = $command->ResetQueueStatistics( QName => $queueName ); |
_________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
jsware |
Posted: Fri Mar 09, 2007 9:40 am Post subject: |
|
|
 Chevalier
Joined: 17 May 2001 Posts: 455
|
jefflowrey wrote: |
You can put together a relatively small and light script in Perl to issue reset queue stats on a regular basis and write out to a file.
The Perl modules provide excellent support for sending and processing PCF messages in a very native way.
For example, to reset queue stats...
Code: |
use MQSeries;
use MQSeries::Command;
my $command = MQSeries::Command->new( QueueManager => $qmgrName, )
or die("Unable to instantiate command object\n");
my $attr = $command->ResetQueueStatistics( QName => $queueName ); |
|
I'll have to learn perl one of these days  _________________ Regards
John
The pain of low quaility far outlasts the joy of low price. |
|
Back to top |
|
 |
renatoz |
Posted: Thu Mar 15, 2007 6:15 pm Post subject: |
|
|
Newbie
Joined: 05 Sep 2003 Posts: 1 Location: São Paulo - BRA
|
jefflowrey,
Please, just a doubt from your post: To a regular user, which would be the necessary authorizations to be granted to be allowed to issue the ResetQueueStatistics() command ?
Regards,
Renato
jefflowrey wrote: |
You can put together a relatively small and light script in Perl to issue reset queue stats on a regular basis and write out to a file.
The Perl modules provide excellent support for sending and processing PCF messages in a very native way.
For example, to reset queue stats...
Code: |
use MQSeries;
use MQSeries::Command;
my $command = MQSeries::Command->new( QueueManager => $qmgrName, )
or die("Unable to instantiate command object\n");
my $attr = $command->ResetQueueStatistics( QName => $queueName ); |
|
|
|
Back to top |
|
 |
|