Check RabbitMQ queue size from client

后端 未结 9 1254
终归单人心
终归单人心 2021-01-30 20:12

Does anyone know if there\'s a way to check the number of messages in a RabbitMQ queue from a client application?

I\'m using the .NET client library.

9条回答
  •  灰色年华
    2021-01-30 20:52

    I am 2 years too late but I was searching for it myself and found that rabbitmq gives u simple script to communicate to erlang nodes..its in sbin folder where the starting script for RabbitMQ is located..so you can basically say

    ./rabbitmqctl list_queues
    

    this will display the queues along with the count of messages pending to those queues similarly you can also say

    ./rabbitmqctl list_channels
    ./rabbitmqctl list_connections
    

    etc. For more info you can visit here

提交回复
热议问题