I am running ActiveMQ Artemis (2.18.0) on CentOS
OS: CentOS Linux release 7.9.2009 (Core) Kernel: Linux 3.10.0-1160.31.1.el7.x86_64
Since I am running a kernel version newer than 2.6 on an x86_64 architecture then based on the documentation I only need to ensure that libaio is installed:
yum install libaio
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.1000mbps.com
* centos-sclo-rh: mirror.seedvps.com
* centos-sclo-sclo: mirror.seedvps.com
* extras: mirror.seedvps.com
* updates: mirror.seedvps.com
Package libaio-0.3.109-13.el7.x86_64 already installed and latest version
In the broker.xml
I set the journal type to AIO:
<journal-type>ASYNCIO</journal-type>
I start the broker programmatically:
broker = new EmbeddedActiveMQ();
broker.setConfigResourcePath(fileConfig);
broker.start();
However, I get the following warning:
org.apache.activemq.artemis.core.server : AMQ222018: AIO was not located on this platform, it will fall back to using pure Java NIO. If your platform is Linux, install LibAIO to enable the AIO journal
What could be the case?