Monday, 21 April 2014

Using JConsole to monitor a remote WildFly server

The first thing you need to do is setting up a management user on the remote WildFly server using the add-user.sh/add-user.cmdscript:
What type of user do you wish to add?
a) Management User (mgmt-users.properties)
b) Application User (application-users.properties)
(a): a
Enter the details of the new user to add.
Using realm 'ManagementRealm' as discovered from the existing property files.
Username : administrator
Password requirements are listed below. To modify these restrictions edit the add-
user.properties configuration file.
. . . .
Password :
Re-enter Password :
      
Once created the user, startup the remote WildFly server, specifying a management interface IP or host binding:
standalone.bat -Djboss.bind.address.management=192.168.1.78 
Now, on the local machine, locate the jconsole.sh/jconsole.bat script which is in the JBOSS_HOME/bin folder and execute it. You need to specify the http-remoting.jmx protocol, the hostname and the management port which is 9990. For example in our case you need to specify as Remote Process: service:jmx:http-remoting-jmx://192.168.1.78:9990
Next enter the management Username and Password that you have created. 

jconsole wildfly monitor application server
Click on Connect. We are connected to the remote application server:
jconsole wildlfy application server monitor

4 comments:

  1. I hope your Testing tools content has unique identity across the world. Each and every blog in your website is very informative users. I am eagerly waiting for the next content.
    Loadrunner course in Chennai | Best Loadrunner training institute in chennai

    ReplyDelete
  2. Nice and good article. It is very useful for me to learn and understand easily. Thanks for sharing your valuable information.
    Loadrunner Training in Noida

    ReplyDelete