]
Miroslav Novak edited comment on WFLY-10094 at 4/26/18 8:51 AM:
----------------------------------------------------------------
The cause is that GLIBC_2.14 is missing:
{code}java.lang.UnsatisfiedLinkError:
/tmp/jboss-eap/modules/system/layers/base/org/apache/activemq/artemis/journal/main/lib/linux-x86_64/libartemis-native-64.so:
/lib64/libc.so.6: version `GLIBC_2.14' not found (required by
/tmp/jboss-eap/modules/system/layers/base/org/apache/activemq/artemis/journal/main/lib/linux-x86_64/libartemis-native-64.so){code}
However GLIBC is present on RHEL 6 but in older version 2.12. I've read something
around this and problem is that libartemis-native-64.so was compiled on RHEL 7 where is
newer GLIBC_2.14 version. So libartemis-native-64.so should be compiled on RHEL6 to fix
this.
Just from curiosity when I tried to compile glibc-2.14 and added it to LD_LIBRARY_PATH AIO
got loaded on RHEL 6.
was (Author: mnovak):
The cause is that GLIBC_2.14 is missing:
{code}java.lang.UnsatisfiedLinkError:
/tmp/jboss-eap/modules/system/layers/base/org/apache/activemq/artemis/journal/main/lib/linux-x86_64/libartemis-native-64.so:
/lib64/libc.so.6: version `GLIBC_2.14' not found (required by
/tmp/jboss-eap/modules/system/layers/base/org/apache/activemq/artemis/journal/main/lib/linux-x86_64/libartemis-native-64.so){code}
However GLIBC is present on RHEL 6 but in older version 2.12. I've read something
around this and problem is that libartemis-native-64.so was compiled on RHEL 7 where is
newer GLIBC_2.14 version. So libartemis-native-64.so should be compiled on RHEL6 to fix
this.
Just from curiosity when I tried to compile glibc-2.14 and added it to LD_LIBRARY_PATH and
AIO got loaded on RHEL 6.
[Artemis 2.x upgrade] libAIO does not get loaded on RHEL 6 x86_64
-----------------------------------------------------------------
Key: WFLY-10094
URL:
https://issues.jboss.org/browse/WFLY-10094
Project: WildFly
Issue Type: Bug
Components: JMS
Reporter: Miroslav Novak
Assignee: Jeff Mesnil
Priority: Blocker
Labels: activemq, feature-branch-blocker
LibAIO does not get loaded on RHEL 6 x86_64:
{code}
[hudson@rhel6-large-2723 bin]$ sh standalone.sh -c standalone-full-ha.xml
-Djboss.socket.binding.port-offset=1000
=========================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /tmp/jboss-eap
JAVA: java
JAVA_OPTS: -server -Xms64m -Xmx512m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m
-Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman
-Djava.awt.headless=true
=========================================================================
...
10:14:31,918 INFO [org.wildfly.extension.messaging-activemq] (MSC service thread 1-1)
WFLYMSGAMQ0075: AIO wasn't located on this platform, it will fall back to using pure
Java NIO. Your platform is Linux, install LibAIO to enable the AIO journal and achieve
optimal performance.
10:14:32,017 INFO [org.apache.activemq.artemis.core.server] (ServerService Thread Pool
-- 75) AMQ221000: live Message Broker is starting with configuration Broker Configuration
(clustered=true,journalDirectory=/tmp/jboss-eap/standalone/data/activemq/journal,bindingsDirectory=/tmp/jboss-eap/standalone/data/activemq/bindings,largeMessagesDirectory=/tmp/jboss-eap/standalone/data/activemq/largemessages,pagingDirectory=/tmp/jboss-eap/standalone/data/activemq/paging)
10:14:32,110 INFO [org.apache.activemq.artemis.core.server] (ServerService Thread Pool
-- 75) AMQ221013: Using NIO Journal
...
{code}
libAIO in artemis journal module from WF branch. Not from Artemis 2.5.0.Final tag.
Wildfly:
https://github.com/jmesnil/wildfly/tree/WFLY-9407_upgrade_artemis_2.4.0_w...
(06c878a313d3cad323889d017e60fd5533204d1a)
Artemis: upstreadm master (577b62d5210cdcc0f86ab9bb1b24e944c877dfe7)