Netty Authoritative Guide Reading Notes (1)


1. Adjust the thread pool settings in response to blocking IO , and control the connection time of HTTP requests
2. Multiplexing technology
of epoll The nio of java is realized by the multiplexing technology of epoll. Multiplexing multiple IO blocking services to the same select blocking (so that the system can handle multiple client requests in the case of a single thread)
3.Select defects
The FD (file descriptor) opened by a single process is limited. It can be solved by selecting multiple processes, but there is a price, and the data exchange between processes is more troublesome. At the same time, java does not have shared memory, and requires socket or other methods for data synchronization, which has performance loss.
The select/poll call scans all sockets, and the performance decreases linearly with the number of FDs.
4. Advantages of
epoll There is no limit to the number of FDs of epoll.
epoll only operates on active sockets (active sockets actively call callback, pseudo AIO, pseudo asynchronous IO)

from: http://blog.csdn.net/xxcupid/article/details/50455707

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327064414&siteId=291194637