Reputation: 151
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...
Upvotes: 6
Views: 24338
Reputation: 4605
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:
add-user.sh
.jboss-client.jar
from the WildFly server to your local laptop (from where you are planning to launch jconsole
).jconsole
:For Java 8:
$JAVA_HOME/bin/jconsole -J-Djava.class.path=$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/jconsole.jar:<Location_On_Your_Laptop>/jboss-client.jar &
For Java 9+:
$JAVA_HOME/bin/jconsole -J--add-modules=jdk.unsupported -J-Djava.class.path=:/<Location_On_Your_Laptop>/jboss-client.jar &
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
Upvotes: 5
Reputation: 4305
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
Upvotes: 9