Why native epoll support is introduced in Netty?

后端 未结 2 1973
感动是毒
感动是毒 2021-01-31 04:41

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.

2条回答
  •  执笔经年
    2021-01-31 05:42

    There are some information about this in netty's docs:

    Netty provides the following platform specific JNI transports:

    Linux (since 4.0.16)
    MacOS/BSD (since 4.1.11)
    

    These JNI transports add features specific to a particular platform, generate less garbage, and generally improve performance when compared to the NIO based transport.

提交回复
热议问题