Carl

When an application is connected to the queue manager the owns the local
queue and the queue goes full, the put fails and yes it does return a
reason code to the application telling it the queue is full. The reason
code is MQRC_Q_FULL.. As I said the MQPUT fails, and therefore the message
has not been written anywhere.

This application must be connected to a different queue manager. When an
application issues an MQPUT to a remote queue then they are actually
putting to a local transmit queue, and they will not know the status of the
destination queue. When the messages are moved by the MCA to the
destination queue manager and the local queue there is full, then the MCA
will put them on the dead letter queue (assuming there is one, its not a
nonpersistent over fast channel, and report options don't say discard msg).

There are several monitoring tools that can be used to alert you long
before a queue is full. We happen to use a Candle product. Besides creating
a situation that monitors queue depth, there is an internal mechanism for
the queue manager to monitor the queues. If you enable the queue depth high
and max depth events, the queue manager will generate event messages to the
system event queue as a result of the put the exceeds the threshold. You
still need to monitor this event queue, and this is one thing that these
products, like the one from Candle, will do. There are several out there,
and I'm sure others will be mentioned. Frankly I wouldn't recommend running
critical queue managers without one of these products.

And yes if you have a message that cannot be properly processed, then you
need to decide what to do with it.That may mean trying to process it again
if the problem has something to do with a state condition that is expected
to change. That may mean discarding it for a inquiry or noncritical
application. Or it may mean moving it to an error queue as you suggest, if
losing the data is unacceptable. Here the decisions are all yours. But
unless you need to stop all further processing on the queue, then consider
getting it out of the way and process the others before you have real
problems.

Rick


|---------+--------------------------------------->
|         |   "Mc Burnie, Carl"                   |
|         |   <[EMAIL PROTECTED]>     |
|         |                                       |
|         |   Sent by: MQSeries List              |
|         |   <[EMAIL PROTECTED]>           |
|         |                                       |
|         |                                       |
|         |                                       |
|         |   Tuesday August 5, 2003 12:39 AM     |
|         |   Please respond to MQSeries List     |
|         |                                       |
|---------+--------------------------------------->
  
>----------------------------------------------------------------------------------------------------|
  |                                                                                    
                |
  |       To:                                         [EMAIL PROTECTED]                
          |
  |       cc:                                                                          
                |
  |       Subject:   Local Queue Reaches Maximum Depth                                 
                |
  
>----------------------------------------------------------------------------------------------------|




Hi,

I'm covering WebSphere MQ for z/OS 5.3 for a few weeks and MQ isn't exactly
my speciality, so please be patient!!

There was a problem yesterday with a local queue that reached maximum depth
and overflowed to the "dead letter queue". There was a "bad" message in the
local queue and all subsequent messages stacked up behind it until maximum
depth was reached and messages began overflowing into the "dead letter
queue".

We would like to identify this type of problem much earlier in the future
and are looking for some automation ideas?

1. The MQ API doesn't seem to return a "maximum depth reached" response for
the MQPUT call, is that correct?

2. When the maximum depth for a local queue is reached MQ doesn't seem to
write any sort of warning message to the system log, is that correct?

3. When messages start overflowing to the "dead letter queue" MQ doesn't
seem to write any sort of message to the system log either, is that
correct?

My immediate idea was, that if the application performing the MQGET
realises
a message is "bad" it should move it off to an "error queue" or something
rather than leaving it there to block the whole show, any comments?

I would be grateful for any ideas or suggestions.

I'm only providing emergency cover and the only manuals I could find were
for MQS 2.1!!!

Thanks,
Carl

Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
 Archive: http://vm.akh-wien.ac.at/MQSeries.archive

Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive

Reply via email to