You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

ActiveMQ Artemis 2.31.2 browse命令报错及消息时间戳CLI查询

ActiveMQ Artemis 2.31.2 获取队列消息时间戳的正确CLI命令

你遇到的错误源于命令格式错误——在Artemis 2.x版本的CLI中,browse是独立的顶级子命令,并非queue的子命令,所以之前的写法会触发参数不匹配的报错。

正确的队列浏览命令

要浏览队列并获取消息时间戳,使用以下格式的命令:

./artemis browse --queue <queuename> --user admin --password password --url tcp://hostip:61616

查看消息时间戳

默认情况下,browse命令的输出会包含消息的timestamp字段,即消息的时间戳。如果需要查看更完整的消息元数据,可以添加--verbose参数:

./artemis browse --queue <queuename> --user admin --password password --url tcp://hostip:61616 --verbose

可选扩展

  • 若只需筛选特定消息,可添加--filter参数(例如--filter "timestamp > 1690000000000")
  • 若要自定义输出格式,可使用--format参数指定要展示的字段(例如--format "timestamp,message-id")

内容的提问来源于stack exchange,提问作者Gampa Sivakumar

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.17 08:22:07