Hi,
most of the distributions have libaio packaged and ready. You just need to "dnf
install" or "apt-get" it in your container image.
--
Vilius
-----Original Message-----
From: Matthew Harris <[email protected]>
Sent: Thursday, January 27, 2022 11:14 PM
To: [email protected]
Subject: Difficulties finding libaio
Hi,
I'm trying to containerize apache-artemis-2.20.0, and right now I'm working on
adding libaio to the container so I can use an AIO journal for faster
performance. I stored the .so files for libaio in a directory in the container,
and I set the LD_LIBRARY_PATH environment variable to point to the directory
containing those files.
However, when I spin up the container and run the broker, it can't find libaio
and defaults to an NIO journal. I see here:
https://activemq.apache.org/components/artemis/documentation/1.1.0/using-server.html#library-path
that java.library.path is specified automatically in the scripts, so I'm
assuming why the JVM isn't using the environment variable to find libaio.
I also see that there's a --java-options argument that can be provided when the
broker is created. Is there a way to overwrite or add a path to
java.library.path this way? It's been a long time since I've worked with Java
so I'm a little lost as to how to point this to the correct directory and load
libaio.
Thanks,
Matthew