|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
How can you keeping running total of msgs per Q for the day? |
« View previous topic :: View next topic » |
Author |
Message
|
wschutz |
Posted: Tue Aug 30, 2005 4:20 pm Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
Quote: |
Meanwhile, I tried using the perl module MQSeries::Command where you can use a function called InquireQueue to capture many queue Attributes. So, as a quick test, I tried to capture the following attributes:
OpenInputCount
OpenOutputCount
CurrentQDepth
TimeSinceReset
MsgEnqCount |
The first three are attributes of a queue, the last two are fields in a pcf response message from the "RESET QUEUE STATISTICS" pcf command. Try looking at the Reset Queue Statistics method of that package. _________________ -wayne |
|
Back to top |
|
 |
Mr Butcher |
Posted: Tue Aug 30, 2005 10:30 pm Post subject: |
|
|
 Padawan
Joined: 23 May 2005 Posts: 1716
|
as you said, the curdepth is just a snapshot of messages in the queue at the moment the command is issued. it depends on the application if this kind of statistic will give you "good" results or not.
if you have triggered application that process incoming messages quickly you will get no good results.
with version 5 there are no build in queue statistics (except on z/OS).
anyway, there are some posibilities:
1. let the application itself do some statistics
2. if the channel / queue is a 1:1 relationship (e.g. 1 inbound channel for 1 inbound queue) then the channel statistics may give some values.
if no 1:1 relationship, the channel status will still show incoming and outgoing messages, maybe this is better then nothing.
3. use a channel exit. i once wrote a channel exit that collected information about queues and number of messages for these queues.
these information was written to a queue periodically and could be used for statistics. this was on zOS, so the code is of no use for you, but maybe you decide to go this way. _________________ Regards, Butcher |
|
Back to top |
|
 |
|
|
|
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
|
|
|
|