配置了 sudo vim /etc/security/limits.conf * soft nofile * hard nofile 单独起进程没问题, 放到supervisor下监管启动,则报错 max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536] 原因: 应该是supervisor监管的进程配置来自于supervisor所在环境配置, supervi
Scalable IO in Java http://gee.cs.oswego.edu/dl/cpjslides/nio.pdf 基本上所有的网络处理程序都有以下基本的处理过程:Read requestDecode requestProcess serviceEncode replySend reply Classic Service Designs 简单的代码实现: class Server implements Runnable { public void run() { try { Se