配置ActiveMQ Artemis监控后启动报错求助
ActiveMQ Artemis监控配置启动报错问题
我正尝试为ActiveMQ Artemis实现监控功能,更新配置后启动服务时出现报错(见附图)。以下是我新增的相关配置:
broker.xml中添加的JMX配置
<?xml version='1.0'?> <configuration xmlns="urn:activemq" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xi="http://www.w3.org/2001/XInclude" xsi:schemaLocation="urn:activemq /schema/artemis-configuration.xsd"> <core xmlns="urn:activemq:core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:activemq:core "> <name>localhost</name> <server> <jmx-management-enabled>true</jmx-management-enabled> </server> <persistence-enabled>true</persistence-enabled> <max-redelivery-records>1</max-redelivery-records> <journal-type>NIO</journal-type>
artemis.profile中的配置
:: Java 虚拟机参数 IF "%JAVA_ARGS%"=="" ( set JAVA_ARGS= -XX:AutoBoxCacheMax=20000 -XX:+PrintClassHistogram -XX:+UseG1GC -XX:+UseStringDeduplication -Xms512M -Xmx2G -Djava.security.auth.login.config=%ARTEMIS_ETC_DIR%\login.config set JAVA_ARGS=%JAVA_ARGS% -Dhawtio.disableProxy=true -Dhawtio.offline=true -Dhawtio.realm=activemq -Dhawtio.role=amq -Dhawtio.rolePrincipalClasses=org.apache.activemq.artemis.spi.core.security.jaas.RolePrincipal set JAVA_ARGS=%JAVA_ARGS% -Dhawtio.http.strictTransportSecurity=max-age=31536000;includeSubDomains;preload -Djolokia.policyLocation=%ARTEMIS_INSTANCE_ETC_URI%\jolokia-access.xml set JAVA_ARGS=%JAVA_ARGS% -Dartemis.instance=%ARTEMIS_INSTANCE% -Dlog4j2.disableJmx=true ) :: 添加JMX Exporter Java Agent配置 set JAVA_ARGS=%JAVA_ARGS% -javaagent:C:\Users\tenal\Downloads\apache-artemis-2.31.2-bin\apache-artemis-2.31.2\lib\jmx_prometheus_javaagent-0.19.0.jar=9876:C:\Users\tenal\Downloads\apache-artemis-2.31.2-bin\apache-artemis-2.31.2\bin\master\etc\config.yaml
内容的提问来源于stack exchange,提问作者Rahul Bhardwaj
相关产品推荐
相关产品推荐

