JConsole & Java Mission Control with JBoss EAP 7

During Red Hat summit, Red Hat releases the new version of its JBoss Application Server. JBoss App Server provides a new JMX Remote Management protocol to connect with. A common JMX tool is JConsole and we will see how to use it with remote mode. We also configure an other tool called Java Mission Control for a cooler JMX monitoring stuff. Sorry my platform is a MacOS X, but I am sure your skill is enough to adapt into your environment.


JConsole is a graphical monitoring tool to monitor Java Virtual Machine and Java applications both on a local or remote machine. JConsole uses underlying features of Java Virtual Machine to provide information on performance and resource consumption of applications running on the Java platform using Java Management Extensions technology. JConsole comes as part of Java Development Kit and the graphical console can be started using “jconsole” command. from wikipedia

JConsole is provided both with OpenJDK and Oracle JDK virtual machine.

JMX connection

JConsole can connect directly to local Java process (via PID) or, can also connect to remote application via a standard JMX protocol or a custom JMX protocol. Standard JMX protocol is not very flexible and should be not use directly, this protocol has got limitations about account management. JBoss EAP 7 provides more flexible protocol called remote+http. JBoss uses HTTP Upgrade to change protocol from HTTP to jboss-remoting without changing TCP port at all.

Here is a tcpdump capture

GET / HTTP/1.1
Sec-JbossRemoting-Key: t/V5HWbok5e1KAYs22zDrQ==
Upgrade: jboss-remoting
Host: localhost:8080
Connection: upgrade

HTTP/1.1 101 Switching Protocols
Connection: Upgrade
Upgrade: jboss-remoting
Sec-JbossRemoting-Accept: +F31ah8B270e5BrbWr6Ig90t+NM=
Date: Tue, 19 Jul 2016 16:40:28 GMT


JConsole from JBoss EAP

JBoss EAP 7 is shipped with a JConsole wrapped script. This script injects into the JConsole classpath CLI lib and remote+http protocol lib. It is available into ${JBOSS_HOME}/bin directory.

JConsole connection to JBoss EAP

with ManagementRealm

Out of the box, JConsole could use remote+http protocol for connecting to JBoss Management port 9990.

> ${JBOSS_HOME}/bin/jconsole.sh

Configure correct JMX url (correct management interface and management-http port)


and use ManagementRealm account to connect with (don’t forget to use ${JBOSS_HOME}/bin/add-user.sh to configure account)

with ApplicationRealm

You can use an account from ApplicationRealm for connecting to JBoss EAP 7 server but you have to change port connection too.

Change standalone.xml with CLI command below

> ${JBOSS_HOME}/bin/jconsole.sh

Configure correct JMX url (correct public interface and http port)


and use ApplicationRealm account to connect with (don’t forget to use ${JBOSS_HOME}/bin/add-user.sh to configure account)

Be careful, if you use this configuration you couldn't connect anymore via Management interface/port and ManagementRealm's account.

Java Mission Control

Java Mission Control can collect low level (CPU, I/O, R/W file, etc…) informations about JVM and can record them (for offline diagnostic). It can also collect JMX information with JMX system.

This tool comes with Oracle JDK and is based on Eclipse technology.

Configuration JMC

In order to use JMC with JBoss EAP 7, we have to configure JMC classpath for providing correct remote+http protocol lib.

Edit jmc.ini file

Java\ Mission\ Control.app/Contents/MacOS/jmc.ini

and add line below at this end of file


File should look like

[mbp:~]$> cat /Library/Java/JavaVirtualMachines/jdk1.8.0_92.jdk/Contents/Home/lib/missioncontrol/Java\ Mission\ Control.app/Contents/MacOS/jmc.ini

JMC connection to JBoss EAP

After that you could start JMC application and add a new connection :

Configure correctly JVM connection parameters

  1. to configure custom url
  2. to choice custom protocol (check it first)
  3. for account credential
  4. to test connection
  5. to save and connect

Now you can now view live all informations about JVM and JBoss EAP 7 application

You can also check all JMX MBean.


JBoss EAP 7 simplifies remote JMX connection. With port reduction and HTTP upgrade features, JBoss EAP 7 monitoring fits perfectly containerization (aka Docker) context. Now both developers and admin system guys can monitor JMX or low level with minimal configuration into constraint environment.

Please feel free to send me your feed back below.

JMX Wildlfy 10