Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-7857

AIO fails to load on RHEL 6 x86 with Oracle JDK 1.8 and OpenJDK 1.8

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 7.1.0.DR14
    • 7.1.0.DR4, 7.1.0.DR9, 7.1.0.DR11
    • ActiveMQ
    • None
    • Regression
    • Hide

      Unzip clean EAP 7.1.0.DR9 and start it with standalone-full-ha.xml configuration on RHEL6 x86 with Open JDK 1.8 or Oracle JDK 1.8

      or

      git clone git://git.app.eng.bos.redhat.com/jbossqe/eap-tests-hornetq.git
      cd eap-tests-hornetq/scripts/
      
      groovy -DEAP_VERSION=7.1.0.DR11 PrepareServers7.groovy
      
      export WORKSPACE=$PWD
      export JBOSS_HOME_1=$WORKSPACE/server1/jboss-eap
      export JBOSS_HOME_2=$WORKSPACE/server2/jboss-eap
      export JBOSS_HOME_3=$WORKSPACE/server3/jboss-eap
      export JBOSS_HOME_4=$WORKSPACE/server4/jboss-eap
      
      cd ../jboss-hornetq-testsuite/
      
      mvn clean install -Dtest=AIOJournalLoadTestCase#testUseOfAIOJournal -Deap=7x | tee log
      
      Show
      Unzip clean EAP 7.1.0.DR9 and start it with standalone-full-ha.xml configuration on RHEL6 x86 with Open JDK 1.8 or Oracle JDK 1.8 or git clone git: //git.app.eng.bos.redhat.com/jbossqe/eap-tests-hornetq.git cd eap-tests-hornetq/scripts/ groovy -DEAP_VERSION=7.1.0.DR11 PrepareServers7.groovy export WORKSPACE=$PWD export JBOSS_HOME_1=$WORKSPACE/server1/jboss-eap export JBOSS_HOME_2=$WORKSPACE/server2/jboss-eap export JBOSS_HOME_3=$WORKSPACE/server3/jboss-eap export JBOSS_HOME_4=$WORKSPACE/server4/jboss-eap cd ../jboss-hornetq-testsuite/ mvn clean install -Dtest=AIOJournalLoadTestCase#testUseOfAIOJournal -Deap=7x | tee log

      AIO journal doesn't load on 32 bit RHEL6 with Oracle JDK 1.8 and OpenJDK 1.8.

      This is regression against previous versions, so priority is set to blocker

      Customer impact : Server is configured with ASYNCIO (AIO) journal to achieve high performance. Because of this issue ASYNCIO is not used. This have negative effect on server performance.

      This is failing since 7.1.0.DR4

      There is a following message in log:

      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.

      More datailed logs say following:

      2016-12-13 06:34:25,258 DEBUG [org.apache.activemq.artemis.jlibaio] (MSC service thread 1-3) artemis-native-64 -> error loading the native library: java.lang.UnsatisfiedLinkError: no artemis-native-64 in java.library.path
      	at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1867)
      	at java.lang.Runtime.loadLibrary0(Runtime.java:870)
      	at java.lang.System.loadLibrary(System.java:1122)
      	at org.apache.activemq.artemis.jlibaio.LibaioContext.loadLibrary(LibaioContext.java:66)
      	at org.apache.activemq.artemis.jlibaio.LibaioContext.<clinit>(LibaioContext.java:85)
      	at org.apache.activemq.artemis.core.io.aio.AIOSequentialFileFactory.isSupported(AIOSequentialFileFactory.java:110)
      	at org.wildfly.extension.messaging.activemq.ActiveMQServerService.start(ActiveMQServerService.java:166)
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1963)
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1896)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at java.lang.Thread.run(Thread.java:745)
      
      2016-12-13 06:34:25,258 DEBUG [org.apache.activemq.artemis.jlibaio] (MSC service thread 1-3) Library artemis-native-64 not found!
      2016-12-13 06:34:25,259 DEBUG [org.apache.activemq.artemis.jlibaio] (MSC service thread 1-3) artemis-native-32 -> error loading the native library: java.lang.UnsatisfiedLinkError: no artemis-native-32 in java.library.path
      	at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1867)
      	at java.lang.Runtime.loadLibrary0(Runtime.java:870)
      	at java.lang.System.loadLibrary(System.java:1122)
      	at org.apache.activemq.artemis.jlibaio.LibaioContext.loadLibrary(LibaioContext.java:66)
      	at org.apache.activemq.artemis.jlibaio.LibaioContext.<clinit>(LibaioContext.java:85)
      	at org.apache.activemq.artemis.core.io.aio.AIOSequentialFileFactory.isSupported(AIOSequentialFileFactory.java:110)
      	at org.wildfly.extension.messaging.activemq.ActiveMQServerService.start(ActiveMQServerService.java:166)
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1963)
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1896)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at java.lang.Thread.run(Thread.java:745)
      
      2016-12-13 06:34:25,259 DEBUG [org.apache.activemq.artemis.jlibaio] (MSC service thread 1-3) Library artemis-native-32 not found!
      2016-12-13 06:34:25,259 DEBUG [org.apache.activemq.artemis.jlibaio] (MSC service thread 1-3) Couldn't locate LibAIO Wrapper
      

      AIO is correctly loaded on 32bit RHEL6 with IBM JDK. It also works with 64bit RHEL.

              rh-ee-ataylor Andy Taylor
              mstyk_jira Martin Styk (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Time Spent - 1 week, 1 day Remaining Estimate - 1 day
                  1d
                  Logged:
                  Time Spent - 1 week, 1 day Remaining Estimate - 1 day
                  1w 1d