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

如何通过JMX/Web UI配置Artemis的management-message-attribute-size-limit

修改Artemis 2.31.2的management-message-attribute-size-limit配置

为什么读取不到该参数?

management-message-attribute-size-limit是Broker全局级别配置,不属于地址级别的设置项,因此调用getAddressSettingsAsJSON("<my-address-name>")不会返回它。默认值256用于限制JMX管理操作中返回的消息属性最大大小。

通过JMX修改配置

  • 用JMX客户端(如jconsole、jvisualvm)连接Artemis的JMX端口(默认1099)。
  • 定位到MBean:org.apache.activemq.artemis → broker → <你的Broker名称> → configuration → BrokerConfiguration。
  • 找到属性managementMessageAttributeSizeLimit,修改为目标值(例如512),变更立即生效无需重启Broker。
  • 也可使用jmxterm命令行执行:
set -b service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi -d org.apache.activemq.artemis:broker=<broker-name>,component=configuration,name=BrokerConfiguration -p managementMessageAttributeSizeLimit 512

通过Web UI修改配置

  • 打开Artemis Web控制台(默认端口8161,路径/console),登录后进入Configuration页面。
  • 切换到Broker Settings标签页,找到management-message-attribute-size-limit项。
  • 点击编辑图标修改数值,保存后变更立即生效。

持久化配置(重启后生效)

若需重启Broker后配置保持,需编辑broker.xml,在<broker>标签内添加或修改:

<management-message-attribute-size-limit>512</management-message-attribute-size-limit>

修改后重启Broker即可。

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.07.06 02:34:51