Apache ActiveMQ Artemis ships by default with a management console. It is powered by Hawt.io.
Its purpose is to expose the Management API via a user friendly web ui.
1. Login
To access the management console use a browser and go to the URL http://localhost:8161/console.
A login screen will be presented, if your broker is secure, you will need to use a user with admin role, if it is unsecure simply enter any user/password.

2. Security
That Jolokia JMX-HTTP bridge is secured via a policy file in the broker configuration directory: 'etc/jolokia-access.xml'. The contents of that file should be modified as described in the Jolokia Security Guide. By default the console is locked down to 'localhost', pay particular attention to the 'CORS' restrictions when exposing the console web endpoint over the network.
3. Console
Once logged in you should be presented with a screen similar to.

3.1. Navigation Menu
On the top right is small menu area you will see some icons.
-
question mark
This will open a menu with the following items-
Help
This will navigate to the console user guide -
About
this will load an about screen, here you will be able to see and validate versions
-
-
person
will provide a drop down menu with-
Preferences
this will open the preferences page -
Log out
self descriptive.
-
3.2. Navigation Tabs
Running below the Navigation Menu you will see several default feature tabs. The 1st 2 are specific to Artemis. The rest of this document will feature on these 2 tabs.
-
Artemis
This shows detailed information of Apache ActiveMQ Artemis specific functionality in a tabular format. -
Artemis JMX
This is a JMX view of Apache ActiveMQ Artemis specific functionality. -
JMX
This exposes the raw Jolokia JMX so you can browse/access all the JMX endpoints exposed by the JVM. -
Runtime
This allows you to monitor the thread usage and their state as well as view metrics etc..
In previous versions there was a "Connect" tab which could be used to connect to a remote broker from the same console.
This was disabled by default for security purposes, but it can be enabled again by removing -Dhawtio.disableProxy=true
from artemis.profile
(or artemis.profile.cmd
on Windows).
You can install further hawtio plugins if you wish to have further functionality.
4. Artemis Tab
Click Artemis
in the left navigation bar to see the Artemis specific plugin. The Artemis tab shows view of information
in a tabular format.
(The Artemis tab won’t appear if there is no broker in this JVM).
4.1. Status Tab
The Status tan shows the basic health of the broker.
4.1.1. Acceptors
This expands to show and expose details of the current configured acceptors.
4.1.2. Broker Network
This expands to show and expose details of the current Cluster of Brokers.
4.2. Connections Tab
This shows a table of all the brokers connections from clients and other Brokers.
4.3. Sessions Tab
This shows a table of all sessions that belong ti connected clients.
4.4. Producers Tab
This shows a table of all client producers including message sent information.
4.5. Consumers Tab
This shows a table of all client consumers including message delivered information.
4.6. Addresses Tab
This shows a table of all the Broker’s addresses
4.6.1. Key Operations
Creating a new Address
To create a new address simply click on the 'Create Address' button and filling in the form presented
You can also perform operations on an address by clicking on the 3 dots and choosing the appropriate operation.
4.7. Queues Tab
This shows a table of all the Broker’s queues
5. Artemis JMX Tab
Click Artemis JMX
in the left navigation bar to see the Artemis JMX specific plugin.
(The Artemis JMX tab won’t appear if there is no broker in this JVM).
The Artemis JMX plugin works very much the same as the JMX plugin however with a focus on interacting with an Artemis broker.
5.1. Tree View
The tree view on the left-hand side shows the top level JMX tree of each broker instance running in the JVM. Expanding the tree will show the various MBeans registered by Artemis that you can inspect via the Attributes tab.
5.2. Key Operations
5.2.1. Creating a new Address
To create a new address simply click on the broker or the address folder in the jmx tree and click on the create tab.
Once you have created an address you should be able to Send to it by clicking on it in the jmx tree and clicking on the send tab.
5.2.2. Creating a new Queue
To create a new queue click on the address you want to bind the queue to and click on the create tab.
Once you have created a queue you should be able to Send a message to it or Browse it or view the Attributes or Charts. Simply click on the queue in th ejmx tree and click on the appropriate tab.
You can also see a graphical view of all brokers, addresses, queues and their consumers using the Diagram tab.
6. Status Logging
When the broker starts it will detect the presence of the web console and log status information, e.g.:
INFO [org.apache.activemq.artemis] AMQ241002: Artemis Jolokia REST API available at http://localhost:8161/console/jolokia INFO [org.apache.activemq.artemis] AMQ241004: Artemis Console available at http://localhost:8161/console
The web console is detected by inspecting the value of the <display-name>
tag in the war file’s WEB-INF/web.xml
descriptor.
By default it looks for hawtio
.
However, if this value is changed for any reason the broker can look for this new value by setting the following system property
-Dorg.apache.activemq.artemis.webConsoleDisplayName=newValue