Linux JNA-based affinity not usable

50 views
Skip to first unread message

Chris

unread,
Jun 23, 2016, 5:44:00 AM6/23/16
to Chronicle
Hi,

I am getting the following error trying to write for 1st time calling ExcerptAppender --> startExcerpt():

Warning: Linux JNA-based affinity not usable because it failed to load! Reason: java.lang.UnsatisfiedLinkError: /tmp/jna-100923095/jna6977498764791098418.tmp: /tmp/jna-100923095/jna6977498764791098418.tmp: failed to map segment from shared object:
Operation not permitted

Seems that the user (it is not root) does not have proper permissions to extract libjndidispatch.so from jna-4.1.0.jar (to /tmp/jna-xxxxxxx directory). OS is CentOS release 6.8 

What is the way to fix this issue? 


Regards,
Chris



Peter Lawrey

unread,
Jun 23, 2016, 7:47:22 AM6/23/16
to java-ch...@googlegroups.com
Hello,
   The Chronicle Queue v4.x doesn't do this.  I would suggest you use v4.4.3 and it shouldn't be a problem.

Regards,
   Peter.

--
You received this message because you are subscribed to the Google Groups "Chronicle" group.
To unsubscribe from this group and stop receiving emails from it, send an email to java-chronicl...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Chris

unread,
Jun 23, 2016, 9:37:54 AM6/23/16
to Chronicle
Hello Peter,

Thank you for your answer. Our application is bound to Java 7 for some reasons. I just saw "Java library for persisted low latency messaging (Java 8+)" description about v. 4.4.3. 

We're currently using version 3.4.2. I saw here the latest version for Java 7 is 3.6.2. 

Is there a chance that 3.6.2 or any other older version(intended for Java 7) does not produce this issue?

Regards
Chris

Peter Lawrey

unread,
Jun 23, 2016, 11:40:27 AM6/23/16
to java-ch...@googlegroups.com

It is possible though if this is a permissions issue it should still be a problem in older versions. It might not produce the warning however.

--
Reply all
Reply to author
Forward
0 new messages