Apache ActiveMQ Artemis 2.17.0

Thu, Apr 1, 2021 4-minute read

ActiveMQ Artemis is the most popular open source, multi-protocol, Java-based messaging server. That’s how ActiveMQ descibes itself. There are many similar products, I’ll take a look at NATS Server sometimes in the future, but today … is ActiveMQ Artemis day.

My setup environment is Windows 10 Pro, so to make a proper broker installation I followed the official guide and done this:

  • downloaded the latest available Artemis binary version (2.17.0)
  • unpacked a package and added Artemis bin folder to path list in environment variables
  • to create a broker I created directory for my new broker, cwd into it and ran following command from cmd:
artemis create netnotes_broker

An initial setup asks for a username and password. Here is what I have been reported then:

Auto tuning journal ...
done! Your system can make 0,99 writes per millisecond, your journal-buffer-timeout will be 1012000

You can now start the broker by executing:

"F:\portable_sw\data\artemis_brokers\netnotes_broker\bin\artemis" run
  • netnotes_broker folder contains all directories required for my new broker including:
bin\
data\
etc\
lib\
log\
tmp\

So just a few steps and broker installation is done. Let’s try to run it as it is now.

"F:\portable_sw\data\artemis_brokers\netnotes_broker\bin\artemis" run

Here what I can see:

     _        _               _
    / \  ____| |_  ___ __  __(_) _____
   / _ \|  _ \ __|/ _ \  \/  | |/  __/
  / ___ \ | \/ |_/  __/ |\/| | |\___ \
 /_/   \_\|   \__\____|_|  |_|_|/___ /
Apache ActiveMQ Artemis 2.17.0


2021-04-02 20:56:30,685 INFO  [org.apache.activemq.artemis.integration.bootstrap] AMQ101000: Starting ActiveMQ Artemis Server
2021-04-02 20:56:33,565 INFO  [org.apache.activemq.artemis.core.server] AMQ221000: live Message Broker is starting with configuration Broker Configuration (clustered=false,journalDirectory=data/journal,bindingsDirectory=data/bindings,largeMessagesDirectory=data/large-messages,pagingDirectory=data/paging)
2021-04-02 20:56:33,616 INFO  [org.apache.activemq.artemis.core.server] AMQ221013: Using NIO Journal
2021-04-02 20:56:33,718 INFO  [org.apache.activemq.artemis.core.server] AMQ221057: Global Max Size is being adjusted to 1/2 of the JVM max size (-Xmx). being defined as 536 870 912
2021-04-02 20:56:33,750 INFO  [org.apache.activemq.artemis.core.server] AMQ221043: Protocol module found: [artemis-server]. Adding protocol support for: CORE
2021-04-02 20:56:33,752 INFO  [org.apache.activemq.artemis.core.server] AMQ221043: Protocol module found: [artemis-amqp-protocol]. Adding protocol support for: AMQP
2021-04-02 20:56:33,753 INFO  [org.apache.activemq.artemis.core.server] AMQ221043: Protocol module found: [artemis-hornetq-protocol]. Adding protocol support for: HORNETQ
2021-04-02 20:56:33,754 INFO  [org.apache.activemq.artemis.core.server] AMQ221043: Protocol module found: [artemis-mqtt-protocol]. Adding protocol support for: MQTT
2021-04-02 20:56:33,756 INFO  [org.apache.activemq.artemis.core.server] AMQ221043: Protocol module found: [artemis-openwire-protocol]. Adding protocol support for: OPENWIRE
2021-04-02 20:56:33,757 INFO  [org.apache.activemq.artemis.core.server] AMQ221043: Protocol module found: [artemis-stomp-protocol]. Adding protocol support for: STOMP
2021-04-02 20:56:33,831 INFO  [org.apache.activemq.artemis.core.server] AMQ221034: Waiting indefinitely to obtain live lock
2021-04-02 20:56:33,832 INFO  [org.apache.activemq.artemis.core.server] AMQ221035: Live Server Obtained live lock
2021-04-02 20:56:34,084 INFO  [org.apache.activemq.artemis.core.server] AMQ221080: Deploying address DLQ supporting [ANYCAST]
2021-04-02 20:56:34,096 INFO  [org.apache.activemq.artemis.core.server] AMQ221003: Deploying ANYCAST queue DLQ on address DLQ
2021-04-02 20:56:34,176 INFO  [org.apache.activemq.artemis.core.server] AMQ221080: Deploying address ExpiryQueue supporting [ANYCAST]
2021-04-02 20:56:34,179 INFO  [org.apache.activemq.artemis.core.server] AMQ221003: Deploying ANYCAST queue ExpiryQueue on address ExpiryQueue
2021-04-02 20:56:37,382 INFO  [org.apache.activemq.artemis.core.server] AMQ221020: Started NIO Acceptor at 0.0.0.0:61616 for protocols [CORE,MQTT,AMQP,STOMP,HORNETQ,OPENWIRE]
2021-04-02 20:56:37,400 INFO  [org.apache.activemq.artemis.core.server] AMQ221020: Started NIO Acceptor at 0.0.0.0:5445 for protocols [HORNETQ,STOMP]
2021-04-02 20:56:37,417 INFO  [org.apache.activemq.artemis.core.server] AMQ221020: Started NIO Acceptor at 0.0.0.0:5672 for protocols [AMQP]
2021-04-02 20:56:37,435 INFO  [org.apache.activemq.artemis.core.server] AMQ221020: Started NIO Acceptor at 0.0.0.0:1883 for protocols [MQTT]
2021-04-02 20:56:37,453 INFO  [org.apache.activemq.artemis.core.server] AMQ221020: Started NIO Acceptor at 0.0.0.0:61613 for protocols [STOMP]
2021-04-02 20:56:37,457 INFO  [org.apache.activemq.artemis.core.server] AMQ221007: Server is now live
2021-04-02 20:56:37,458 INFO  [org.apache.activemq.artemis.core.server] AMQ221001: Apache ActiveMQ Artemis Message Broker version 2.17.0 [0.0.0.0, nodeID=2494d779-93e5-11eb-90d2-34f64be3cb2d]
2021-04-02 20:56:38,021 INFO  [org.apache.activemq.hawtio.branding.PluginContextListener] Initialized activemq-branding plugin
2021-04-02 20:56:38,144 INFO  [org.apache.activemq.hawtio.plugin.PluginContextListener] Initialized artemis-plugin plugin
2021-04-02 20:56:39,509 WARN  [org.apache.activemq.artemis.core.server] AMQ222210: Free storage space is at 35,2GB of 497,7GB total. Usage rate is 92,9% which is beyond the configured <max-disk-usage>. System will start blocking producers.
2021-04-02 20:56:39,517 INFO  [io.hawt.HawtioContextListener] Initialising hawtio services
2021-04-02 20:56:39,541 INFO  [io.hawt.system.ConfigManager] Configuration will be discovered via system properties
2021-04-02 20:56:39,546 INFO  [io.hawt.jmx.JmxTreeWatcher] Welcome to Hawtio 2.11.0
2021-04-02 20:56:39,556 INFO  [io.hawt.web.auth.AuthenticationConfiguration] Starting hawtio authentication filter, JAAS realm: "activemq" authorized role(s): "amq" role principal classes: "org.apache.activemq.artemis.spi.core.security.jaas.RolePrincipal"
2021-04-02 20:56:39,580 INFO  [io.hawt.web.proxy.ProxyServlet] Proxy servlet is disabled
2021-04-02 20:56:39,591 INFO  [io.hawt.web.servlets.JolokiaConfiguredAgentServlet] Jolokia overridden property: [key=policyLocation, value=file:/F:/portable_sw/data/artemis_brokers/netnotes_broker/etc/\jolokia-access.xml]
2021-04-02 20:56:41,042 INFO  [org.apache.activemq.artemis] AMQ241001: HTTP Server started at http://localhost:8161
2021-04-02 20:56:41,043 INFO  [org.apache.activemq.artemis] AMQ241002: Artemis Jolokia REST API available at http://localhost:8161/console/jolokia
2021-04-02 20:56:41,044 INFO  [org.apache.activemq.artemis] AMQ241004: Artemis Console available at http://localhost:8161/console

From the output above we can see all is running properly.

  • we can see all protocols running (MQTT,AMQP,STOMP,HORNETQ)
  • web console for administration is available at: http://localhost:8161/console. To make a login, we have to use username/password entered during broker setup process.

artemis-web-console.png