Rabbitmq troubleshooting

Print all the queues with at least one message

rabbitmqctl list_queues -p vhost_staging | awk -F"\t" '$2>0'

Memory consumed by Rabbitmq total and from management plugin

rabbitmqctl status | grep -A2 -B0 "memory," | grep total | awk -F"," '{print substr($2, 1, length($2)-1)}'

rabbitmqctl status | grep -A13 -B0 "memory," | grep mgmt_db | awk -F"," '{print substr($2, 1, length($2)-1)}'

Spread the word. Share this post!

Leave Comment

Your email address will not be published. Required fields are marked *