ActiveMQ Artemis无法获得队列统计信息

时间:2019-11-11 08:52:52

标签: activemq-artemis

有一个./artemis命令,应该显示队列的统计信息:./artemis queue stat(最后一个):

The most commonly used artemis commands are:
    address     Address tools group (create|delete|update|show) (example ./artemis address create)
    browser     It will browse messages on an instance
    consumer    It will consume messages from an instance
    create      creates a new broker instance
    data        data tools group (print) (example ./artemis data print)
    help        Display help information
    mask        mask a password and print it out
    migrate1x   Migrates the configuration of a 1.x Artemis Broker
    producer    It will send messages to an instance
    queue       Queue tools group (create|delete|update|stat|purge) (example ./artemis queue create)

但是,当我尝试使用./artemis queue stat --user=master --password=master --url=tcp://0.0.0.0:1616时,我会得到

Exception in thread "main" ActiveMQConnectionTimedOutException[errorType=CONNECTION_TIMEDOUT message=AMQ219014: Timed out after waiting 30,000 ms for response when sending packet -12]

ActiveMQ Artemis代理在端口1616上的远程计算机上运行。

通过这些命令创建队列的尝试成功,但是我也无法通过这种方式清除队列。

对出什么问题有任何想法吗?

1 个答案:

答案 0 :(得分:1)

如果代理运行的计算机与运行queue stat的计算机不在同一台计算机上,则URL tcp://0.0.0.0:1616不可用。地址0.0.0.0是一个特殊的元地址,它仅对接收网络连接(即充当服务器)的进程真正有用。该地址允许服务器在 all 网络接口上接收连接。它在客户端上将无法正常运行。您可以read more about 0.0.0.0 here