How do you handle uncommitted messages in MQ?

These uncommitted messages can be handled using “dspmqtrn” and “rsvmqtrn” command. In some situations the uncommitted transactions remain or the keep increasing on the queue even after resolving in-doubt transactions.

What are uncommitted messages in MQ?

In IBM MQ, the MQGET or MQPUT of a message is uncommitted if the operation is done within SYNCPOINT (MQGMO_SYNCPOINT or MQPMO_SYNCPOINT), and the unit of work is not committed.

What is the maximum size of a message in MQ?

The default maximum message length on IBM WebSphere MQ is 4 MB. If the message is too large for the queue, MQRC_MSG_TOO_BIG_FOR_Q is returned. Similarly, if the message is too large for the queue manager, MQRC_MSG_TOO_BIG_FOR_Q_MGR is returned.

How do I purge messages in MQ queue?


  1. In the Navigator view, click the Queues folder that contains the queue. The queue is displayed in the Content view.
  2. In the Content view, right-click the queue, then click Clear Messages…
  3. Select the method to use to clear the messages from the queue:
  4. Click Clear.
  5. Click Close to close the dialog.

What is Curdepth in MQ?

CurrentQDepth is the number of messages currently on the queue. It is incremented during an MQPUT call, and during backout of an MQGET call. Similarly, it excludes messages that have been retrieved within a unit of work using the MQGET call, but that have yet to be committed.

What is Ipprocs?

Meaning: This is the number of applications that are currently connected to the queue to get messages from the queue. MQSC parameter: IPPROCS. Attribute: Open output count. Meaning: This is the number of applications that are currently connected to the queue to put messages on the queue.

What is the maximum queue depth in MQ?

On the other hand, distributed MQ has a default maximum queue depth of 5,000 with a warning at just 4,000.

How do you increase queue size in MQ?

To increase the size of a message queue, complete the following steps:

  1. Monitor the queue depth with the WebSphere MQ Explorer. See the documentation for the MAXDEPTH parameter in WebSphere MQ queue properties.
  2. If the message queue fills up with messages, adjust the value of the MAXDEPTH parameter.

How do I clear my message queue?

How do I purge RabbitMQ queue?

A queue can be purged from the RabbitMQ Management Interface. Click the Queue tab and go to the bottom of the page. You will find a dropdown “Delete / Purge” there. Press Purge to the right to empty the queue.

How do you measure Curdepth in MQ?

2 Answers

  1. Create an mqsc file, say curdepth.mqsc containing the following: DIS QL(*) CURDEPTH. The above will display curdepth of all queues.
  2. Setup MQSERVER environment variable to point to remote queue manager.
  3. Through your shell script runmqsc -c < curdepth.mqsc.
  4. Then parse the output of the command.

What is Curdepth?

CURDEPTH is the current queue depth, that is, the number of messages on the queue. This is a useful attribute to display, because by monitoring the queue depth you can ensure that the queue does not become full.

How do you tell if there are uncommitted messages on an IBM MQ queue?

Display the curdepth of the queue. If it is non-zero, but you can not browse or get a message, the MQPUT has not been committed. As an alternative to browsing the queue, you can display the UNCOM attribute using DISPLAY QSTATUS command. * The sample browse program is amqsbcg. where “qname” and “qmgr_name” are substituted with the appropriate names.

How to check the status of a MQ queue?

From the WRKMQM panel, select option 26=MQSC for the appropriate queue manager to access the runmqsc panel. Enter 1) Using the CSQOREXX panels, do a display of object type QUEUE. On the resulting screen, hit F11 for status.

Are there any uncommitted changes in the queue?

YES There are uncommitted changes pending. NO There are no uncommitted changes pending. For shared queues, the value returned applies only to the queue manager generating the reply. The value does not apply to all the queue managers in the queue-sharing group.