问题
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