# Print total number of messages in all queues
rabbitmqctl list_queues | awk ‘{s+=$2} END {print s}’
# List all queues, sorted by number of queued messages in descending order
rabbitmqctl list_queues | sort -nr -k2 | less
rabbitmq list total queue sorted
Leave a reply