我正在尝试通过JConsole连接到ActiveMQ Artemis。然而,它似乎不起作用。
我尝试了以下带有和不带用户/密码(admin/admin)的URL。:
service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi
和
service:jmx:rmi:///jndi/rmi://0.0.0.0:1099/jmxrmi
我的代理在本地运行。我刚刚解压缩并创建了一个实例。这是我的管理. xml
:
<management-context xmlns="http://activemq.org/schema">
<connector connector-port="1099"/>
<authorisation>
<whitelist>
<entry domain="hawtio"/>
</whitelist>
<default-access>
<access method="list*" roles="amq"/>
<access method="get*" roles="amq"/>
<access method="is*" roles="amq"/>
<access method="set*" roles="amq"/>
<access method="*" roles="amq"/>
</default-access>
<role-access>
<match domain="org.apache.activemq.artemis">
<access method="list*" roles="amq"/>
<access method="get*" roles="amq"/>
<access method="is*" roles="amq"/>
<access method="set*" roles="amq"/>
<access method="*" roles="amq"/>
</match>
<!--example of how to configure a specific object-->
<!--<match domain="org.apache.activemq.artemis" key="subcomponent=queues">
<access method="list*" roles="view,update,amq"/>
<access method="get*" roles="view,update,amq"/>
<access method="is*" roles="view,update,amq"/>
<access method="set*" roles="update,amq"/>
<access method="*" roles="amq"/>
</match>-->
</role-access>
</authorisation>
</management-context>
我尝试了以下方法:
<connector connector-port="1099"/>
in management.xml
fileartemis-service.xml
: <!-- uncomment this if you want to connect jconsole to connect -->
<argument>-Dcom.sun.management.jmxremote</argument>
<argument>-Dcom.sun.management.jmxremote.port=1099</argument>
<argument>-Dcom.sun.management.jmxremote.ssl=false</argument>
<argument>-Dcom.sun.management.jmxremote.authenticate=false</argument>
<argument>-Dcom.sun.management.jmxremote.rmi.port=1099</argument>
我刚刚通过执行以下操作在ActiveMQ Artemis 2.6.2中工作:
我在Linux上使用了1.8JDK。我没有可以测试的视窗盒子。
也可以通过更改步骤#4来实现此工作
- Download and unzip ActiveMQ Artemis 2.6.2 to
<ACTIVEMQ_HOME>
- Open a terminal and run
cd <ACTIVEMQ_HOME>/bin
- Create a new broker instance using
./artemis create ~/testJMX --user myUser --pass myPass --require-login
- Remove all of the contents of the
management-context
element in etc/management.xml
so that you're left only with this: <management-context xmlns="http://activemq.org/schema" />
总的来说,我建议您迁移到最新版本。ActiveMQ Artemis 2.6.2已发布近3年。自2.6.2发布以来,JMX属性已从artemis-service. xml
中删除,因为它们不再适用。有关更多详细信息,请参阅ARTEMIS-2112。
相关问题
- ActiveMQ Artemis临时队列
- 如何通过核心更改ActiveMQ Artemis队列的路由类型API
- ActiveMQ Artemis消息id
- ActiveMQ在重新启动时自动恢复队列
- 如何热导出ActiveMQ Artemis的配置并热导入?
- Tomcat 7上的ActiveMQ Web Console 5.6-Taglibs中的空指针
- 通过JMX访问Apache ActiveMQ会引发ConnectionMBean 5.10
- ActiveMQ Artemis-连接到从实例的Web控制台
- Artemis ActiveMQ无法连接到Postgres
- 为ActiveMQ Artemis死信队列设置保留策略?
- 如何从客户端设置路由类型ActiveMQ Artemis
- 如何在ActiveMQ Artemis Web控制台中查看浏览队列中的正文消息
- Apache ActiveMQ Artemis Web控制台
- ActiveMQ Artemis无法获取队列统计信息
- ActiveMQ Artemis上的MQTT监听器-如何确保订阅者使用所有消息(不仅仅是最新消息)
- Activemq-Artemis管理消息对主题列表的请求没有响应
- 重新排序消息-Artemis
- ActiveMQ Artemis:PostgresDB持久性:自动提交
- ActiveMQ Artemis: javax.jms.IllegalStateRuntimeException:会话在PostgreSQLDB连接中断后关闭
- 使用Activemq的BrokerViewMBean时出现异常