socket connection too short, accept many times leads to the main thread CPU filled, the worker thread CPU occupancy rate is low

1, an ET model epoll;

2, open reuseport method;

  The latest Linux SO_REUSEPORT characteristics: http://www.mamicode.com/info-detail-2201958.html

3, to increase the size of the backlog queue.

  On the socket's backlog parameter: https://www.cnblogs.com/qiumingcheng/p/9492962.html

Guess you like

Origin www.cnblogs.com/huangfuyuan/p/11317165.html