Information and management of the akka cluster using JMX console

倖福魔咒の 提交于 2020-01-06 07:25:47

问题


I am working on a project based on akka cluster, where I got to implement JMX console to the manage akka clusters.

When I was looking at the akka documentation I got a very minimal information.

Then I tried looking at Java VisualVM, found an option to add new jmx connection like below, then what should be the connection url there ? I tried localhost:8080 but unsuccessful .

What should be configured else to get the JMX console to my akka cluster ?


回答1:


In the application.conf for the node(s) that you want to monitor, configure the following:

akka.cluster.jmx.enabled = on

Start that node with the following JVM system properties:

-Dcom.sun.management.jmxremote.port=9999
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false

With the above configuration, enter <host of the node>:9999 in the VisualVM "Connection:" prompt. Once you're connected to the node via VisualVM, look for the akka.Cluster JMX MBeans.

Note that this setup disables security. See the JMX documentation for more information.



来源:https://stackoverflow.com/questions/48395416/information-and-management-of-the-akka-cluster-using-jmx-console

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!