Monitoring

Using JConsole to monitor a remote WildFly server

This quick tutorial shows how to monitor WildFly application server using the JConsole tool.  


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.cmd script:

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. Voilà! We are connected to the remote application server:

jconsole wildlfy application server monitor

 

Related articles available on mastertheboss.com

How to monitor JBoss CPU usage ?

  JBoss AS 7 users and WildFly can use JConsole in order to moni

How to monitor jboss graphically ?

  You’ve been using the JMX Console to access yourMBeans. In thi

How to monitor JBoss with snapshots?

  JBoss gives you the ability to capture data not only in real t

JBoss Alarm configuration

An Alarm indicates that an event (generally an error) has happene

Monitoring JBoss EJB Container

In this article we will show how easily you can write an Intercep

Monitor JBoss AS with Jolokia

Jolokia is a cool monitoring solution for accessing JMX MBeans re

Follow us on Twitter