【问题标题】:ActiveMQ Artemis can't get queue statActiveMQ Artemis 无法获取队列统计信息
【发布时间】:2019-11-11 08:52:52
【问题描述】:

./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 端口上运行。

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

你有什么想法吗?

【问题讨论】:

    标签: activemq-artemis


    【解决方案1】:

    如果代理运行在与您运行queue stat 命令的机器不同的机器上,那么 URL tcp://0.0.0.0:1616不起作用。地址0.0.0.0 是一个特殊的元地址,仅对接收网络连接的进程(即充当服务器)真正有用。此地址允许服务器接收 所有 网络接口上的连接。它不会在客户端上正常运行。你可以read more about 0.0.0.0 here

    【讨论】:

    • 非常感谢!确实,将 0.0.0.0 更改为 localhost 后,它就开始工作了!我还有另一个问题说明(如果有必要,我将编辑我的主要问题):我是否应该首先停止队列的所有消费者/生产者以清除此队列?
    • 请为队列清除情况添加一个新问题。谢谢!
    猜你喜欢
    • 1970-01-01
    • 2012-02-22
    • 1970-01-01
    • 2021-04-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-04-14
    相关资源
    最近更新 更多