原生的 NIO 在 JDK 1.7 版本存在 epoll bug

答案解析

JDK 1.7 NIO 的 epoll bug 会导致 Selector 空轮询,CPU占用高,需升级 JDK 或用 Netty 优化规避。