-
1. Re: libAIO warning
clebert.suconic Dec 23, 2009 11:27 AM (in response to xnak)You could try recompiling the library yourself:
http://hornetq.sourceforge.net/docs/hornetq-2.0.0.CR2/user-manual/en/html/libaio.html#d0e9794
-
2. Re: libAIO warning
timfox Dec 23, 2009 3:53 PM (in response to clebert.suconic)What chip architecture are you running?
You shouldn't have to compile anything if you're you're running x86 or x86_64
-
3. Re: libAIO warning
xnak Dec 23, 2009 4:05 PM (in response to timfox)x86... I really don't know what I am doing wrong, I'll try to recompile asap. -
4. Re: libAIO warning
clebert.suconic Dec 24, 2009 6:21 AM (in response to xnak)Make sure you're using a proper JDK.
For instance, I have seen problems once when I was accidently using GCJ. We test it with Sun JDK usually.
-
5. Re: libAIO warning
timfox Dec 24, 2009 12:13 PM (in response to xnak)You won't need to recompile if you're on x86 linux, kernel 2.6 or later and using Sun JDK 5+
-
6. Re: libAIO warning
xnak Dec 28, 2009 6:20 AM (in response to timfox)Hello all,
I am using JDK 1.6.0_03 on a CentOS linux. I just tried to recompile the libAIO library and I still get the warning message.
I understand that libAIO is a standard Linux shared library. The JNI bindings for it are included in HornetQ's jars? I have the following jars in my application:
hornetq_core-2.0.0.jar
hornetq_jms-2.0.0.jar
hornetq_logging-2.0.0.jar
hornetq_transports-2.0.0.jar
I am using hornet to implement persistent queueing in my application, I use it embedded in the JVM.
Thanks in advance,
Felipe
-
7. Re: libAIO warning
clebert.suconic Dec 28, 2009 8:28 AM (in response to xnak)I didn't realize you were using it embedded...
You need to define -Djava.library.path=<your-path-to-the.SO>
look at the /bin/run.sh with the distribution.... you will see it defined to the current directory.
You won't probably need to use the recompiled SO if you do this.
-
8. Re: libAIO warning
xnak Dec 28, 2009 10:03 AM (in response to clebert.suconic)Ok, now I see that I didn't copy libHornet* to the server's /usr/lib before starting the application.
Now I did that, and I also set java.library.path to /usr/lib, but I still get the warning. Do I need to copy anything else?
Thanks,Felipe
-
9. Re: libAIO warning
clebert.suconic Dec 28, 2009 10:20 AM (in response to xnak)You don't need to copy anything to /usr/lib...
All you need is to define the library.path.
Do you get the warning when you run the distributed server?
-
10. Re: libAIO warning
xnak Dec 28, 2009 11:32 AM (in response to clebert.suconic)Well, I didn't have those libraries on the server, so I copied them to /usr/lib. I am not sure what you mean with distributed server? -
11. Re: libAIO warning
clebert.suconic Dec 28, 2009 11:40 AM (in response to xnak)on the download package, if you go to ./hornetq-dir/bin, you will see a run.sh
if you execute that run.sh, what do you see?
-
12. Re: libAIO warning
xnak Dec 28, 2009 12:37 PM (in response to clebert.suconic)That's interesting - I've uploaded the distribuition to the server and ran the script you mentioned. The message is different, it says "Using AIO Journal" instead. Why is that?
Thanks for your patience!!!! -
13. Re: libAIO warning
clebert.suconic Dec 28, 2009 7:20 PM (in response to xnak)Just define the library as defined on run.sh and keep the proper .so on the path defined. It should be pretty simple as it is running on the run.sh. You must be doing some obvious mistake, but it's hard for me to tell. You just need to check your environment. Use the run.sh as the base for your script. -
14. Re: libAIO warning
xnak Jan 6, 2010 8:50 AM (in response to clebert.suconic)Still no luck
If I use "ps" command line app to find my app's process, I see the following:
/usr/java/jdk1.6.0_03/bin/java -Dpbid=MORouter -cp :./lib/BWLib_Connection-20090504_1385.jar -Djava.library.path=/usr/lib -Duser.timezone=America/Sao_Paulo com.purecontent.morouter.Main
And using "ls /usr/lib/|grep -i aio" I get the following list:
libaio.a
libaio.so
libaio.so.1
libaio.so.1.0.0
libaio.so.1.0.1
libHornetQAIO32.so
libHornetQAIO64.so
libHornetQAIO_ia64.so
librtkaio.aSo I really don't know what to do