ActiveMQ Artemis 无法获取队列统计信息
ActiveMQ Artemis can't get queue stat
有一个 ./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 上的远程计算机上。
通过这些命令创建队列的尝试成功了,但我也未能通过这种方式清除队列。
有什么地方出了问题吗?
如果代理 运行 与您 运行 在 queue stat
命令所在的机器上不同,则 url tcp://0.0.0.0:1616
将不 工作。地址 0.0.0.0
是一个特殊的元地址,它仅对 接收 网络连接(即充当服务器)的进程真正有用。此地址允许服务器在 所有 网络接口上接收连接。它不会在客户端上正常运行。你可以 read more about 0.0.0.0
here.
有一个 ./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 上的远程计算机上。
通过这些命令创建队列的尝试成功了,但我也未能通过这种方式清除队列。
有什么地方出了问题吗?
如果代理 运行 与您 运行 在 queue stat
命令所在的机器上不同,则 url tcp://0.0.0.0:1616
将不 工作。地址 0.0.0.0
是一个特殊的元地址,它仅对 接收 网络连接(即充当服务器)的进程真正有用。此地址允许服务器在 所有 网络接口上接收连接。它不会在客户端上正常运行。你可以 read more about 0.0.0.0
here.