Why native epoll support is introduced in Netty?

Dhanaraj Durairaj picture Dhanaraj Durairaj · May 5, 2014 · Viewed 9.1k times · Source

I believe Java's NIO library will use epoll on Linux machines. What are all the advantages of using Epoll instead of NIO on Linux machines.

Answer

Norman Maurer picture Norman Maurer · May 5, 2014

Netty's epoll transport uses epoll edge-triggered while java's nio library uses level-triggered. Beside this the epoll transport expose configuration options that are not present with java's nio like TCP_CORK, SO_REUSEPORT and more.