All Products
Search
Document Center

View consumer status

Last Updated: Sep 13, 2019

Overview

The MQ console allows you to check the consumer status for troubleshooting message consumption exceptions. This function allows you to view comprehensive information about consumer instances of a group ID, as well as information about a single consumer instance. The information includes online status, subscription relationship, consumption TPS, message accumulation amount, and JStack. You can use the information to locate the causes for message consumption exceptions.

Generally, the cause of a message consumption exception is complicated. Consumer status information in the console is usually not enough to troubleshoot the problem. In this case, you need to perform further troubleshooting through log analysis and business scenario analysis.

For more information about typical troubleshooting scenarios related to consumer status query, see Typical scenarios.

Typical scenarios

Consumer status queries are often used in the following two troubleshooting scenarios:

Procedure

View comprehensive information about a group ID

To view the comprehensive information about the consumer instances of a specific group ID, perform the following steps:

  1. Log on to the MQ console.

  2. In the left-side navigation pane, choose Groups.

  3. On the Groups page, locate the row that contains the target group ID and click Consumer Status in the Actions column.

Field description

The following table describes the main fields on the Consumer Status page:

Field Description
Online The value is Yes once the group ID has one consumer instance online. In such case, you can view the information about all online consumer instances in the Connection Information area. If none of the consumer instances of the group ID is online, the value is No.
Subscription Consistency Indicates whether the subscription information of all consumer instances of the group ID are consistent. For more information about subscription consistency, see Subscription consistency.
Real-Time Consumption Rate The total transactions per second (TPS) at which messages are received by the consumer instance group under the group ID. Unit: messages/s.
Real-Time Message Accumulation The total number of messages not consumed by the consumer instance group under the group ID.
Latest Consumption Time The time when the consumer instance group under the group ID last consumed a message.
Latency The difference between the production time of the earliest unconsumed message and the current time.

View information about a single consumer instance of a specific group ID

If the online status of the group ID is Yes, you can view information about each online consumer instance under the group ID in the Connection Information area, including the client ID, host/public IP address, current process ID, and message accumulation amount.

View more information

If you want to view more information about a specific consumer instance, click Detailed Information in the Detailed Information column.

A page shown in the following figure appears, showing the number of consumption threads, consumption start time, subscription, and message consumption statistics.

consumerstatus1

View JStack information

If you want to view the JStack information of the current process for a specific consumer instance, locate the row that contains the target consumer instance and click JStack in the JStack column. The following figure shows the displayed information:

consumerstatus3