简体   繁体   中英

How to open Wildfly 8.2 JMX port for monitoring?

I am using Wildfly 8.2 on CentOs. Can anyone help me to open remote JMX on Wildfly 8.2?

I am only using standalone-full.xml and the port 10990 is already accessible for webconsole like: 192.168.1.10:10990/console/

Now, I am trying to monitor wildfly from jconsole and zabbix with my laptop, but it is not working.

Any help on this is appreciated...

You should use jconsole.sh from $WILDFLY_HOME/bin/jconsole.sh and url

service:jmx:http-remoting-jmx://192.168.1.10:10990

also allow external connection:

-Djboss.bind.address.management=192.168.1.10

As far as I know, the JMX service on wildly is accessible on port 9990. From your mail, it seems that it's running at 10990 for you.

To access WildFly over JMX remotely through jconsole following are the steps you need to follow:

  1. On the wildfly server, create management user using add-user.sh.
  2. Get the jboss-cli-client.jar from the wildly server to your local laptop (from where you are planning to launch jconsole).
  3. Invoke the following from your local laptop to start jconsole:

$JAVA_HOME/bin/jconsole -J-Djava.class.path=$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/jconsole.jar:/jboss-client.jar &

  1. On the jconsole pop up window which comes up on your laptop, select "Remote Process". Provide the following URL:

service:jmx:http-remoting-jmx://WildFly_Host:JMX_Port

For example, it could be : service:jmx:http-remoting-jmx://1.2.3.4:9990

  1. Provide the username and password created in step #1.
  2. Connect.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM