How to check consumer info on RabbitMQ Cluster
search cancel

How to check consumer info on RabbitMQ Cluster

book

Article ID: 293231

calendar_today

Updated On:

Products

VMware RabbitMQ

Issue/Introduction

You noticed that there is a number of messages in ready state in your RabbitMQ queue and its not decreasing. The most common cause is that your consumer applications might not be running or it is taking too slow to consume.

Environment

Product Version: 2.1 onwards

Resolution

Here are the steps to take to get consumer on your RabbitMQ cluster:

Using the rabbitmqctl command:

1. SSH into one of the RabbitMQ server nodes 
 

bosh ssh -d <RabbitMQ-OD-Service-Instance> rabbitmq-server/0


2. Get consumer stats by running

for i in $(rabbitmqctl list_vhosts); do echo vhost: $i && rabbitmqctl list_queues list_queues name type messages messages_ready consumers consumer_utilization -p $i ; done

Using the RabbitMQ Management UI

1. Access your Service Instance Management UI

2. Once logged in. Go to Queues Tab and click on specific queue that has high message rate. This will give you a page that looks like screenshot below.  Under Details Section it will give you consumer and consumer utitlization values.




Notes on consumer and consumer_utilization value:

If your consumer has a value of zero this means that there are no application consuming messages in queue. If you see a low value on your consumer_utilization this means that your consumers are slow, please see our docs on how to find bottlenecks.