Epoll not available on Linux server

444 views
Skip to first unread message

max...@gmail.com

unread,
Mar 14, 2016, 3:04:32 PM3/14/16
to Netty discussions
Hi,

I would like to test out the EpollServerSocketChannel to see if it gives us any improvements over Nio.

Unfortunately it does not seem to be available on our linux servers. The stack trace from Epoll.ensureAware() contains:

Caused by: java.lang.UnsatisfiedLinkError: could not load a native library: netty-transport-native-epoll
        at io.netty.util.internal.NativeLibraryLoader.load(NativeLibraryLoader.java:196)
        at io.netty.channel.epoll.Native.<clinit>(Native.java:47)
        at io.netty.channel.epoll.Epoll.<clinit>(Epoll.java:30)
        ... 20 common frames omitted
Caused by: java.lang.RuntimeException: failed to get method ID: NetUild.isIpV4StackPreferred()
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1937)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1822)
        at java.lang.Runtime.load0(Runtime.java:809)
        at java.lang.System.load(System.java:1086)
        at io.netty.util.internal.NativeLibraryLoader.load(NativeLibraryLoader.java:193)
        ... 22 common frames omitted

Is this because our servers are missing something obvious?

We are running Debian 3.2.68-1+deb7u5 x86_64 GNU/Linux with Netty 4.0.25.Final

Thanks
Max

Norman Maurer

unread,
Mar 14, 2016, 3:21:16 PM3/14/16
to ne...@googlegroups.com
This sounds like you are mixing versions. Ensure the epoll jar and the rest have the same.


--
You received this message because you are subscribed to the Google Groups "Netty discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to netty+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/netty/529f32e4-35f1-4d37-ac5c-a5003b4a3dc6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

max...@gmail.com

unread,
Mar 15, 2016, 5:26:40 AM3/15/16
to Netty discussions
You're right. Stupid error on my part, I had left out the Final on the epoll native dependency.

Thanks for the help.

Norman Maurer

unread,
Mar 15, 2016, 5:28:08 AM3/15/16
to ne...@googlegroups.com
No worries… Happy you sorted it :)

Reply all
Reply to author
Forward
0 new messages