What can cause the queue outbound message count to be higher than the inbound message count as seen in "show stat queue_name" command

What can cause the queue outbound message count to be higher than the inbound message count as seen in "show stat queue_name" command

book

Article ID: KB0085805

calendar_today

Updated On:

Products Versions
TIBCO Enterprise Message Service -
Not Applicable -

Description

Resolution:
Description:
= = = = = = =
The queue outbound message count is higher than the inbound message count as seen in "show stat &ltqueue_name>" command.

tcp://localhost:7241> show stat queue queue.sample wide

                                              In-Total             In-Rate         Out-Total            Out-Rate
Queue Name                         Msgs   Size       Msgs Size     Msgs   Size         Msgs   Size
queue.sample                        670  253.8 Kb   0  0.0 Kb      1452  579.2 Kb    0    0.0 Kb

Environment:
= = = = = =
All OS
All versions of TIBCO Enterprise Message Service

Resolution:
= = = = = =

“Inbound Total Count” is the number of messages that have been received by the server for this queue. “Outbound Total Count” is the number of messages that have been sent to consumers which includes prefetch messages, messages that may be rolled back and resent, unacked messages etc).

In the “show stat queue &ltqueue_name>” command output, the total count is collected for the lifetime of the queue.

The reason you may see messages difference in inbound/outbound message counts can be due to the following:


1.  The EMS server has been started with some pending messages already in the queue.

2.  When a consumer finishes message processing but fails to acknowledge the message.

Though in AUTO_ACK mode, acknowledgement rarely should be lost though there are situations that could cause the loss of “ACK”, such as:

a). A Client disconnects just prior to ACKing and therefore did not have a chance to complete the ACK process properly.

b). Network issues such as too much delay causing the ACK message to arrive late and considered "lost"

c). Client did not have enough resources (memory, CPU etc) to complete the process in the timely fashion.


Keywords/Tags:
= = = = = = = = =
message count, inbound, outbound

Issue/Introduction

What can cause the queue outbound message count to be higher than the inbound message count as seen in "show stat queue_name" command