压力测试中连接数过大问题

解决问题:nginx 2016/04/12
17:14:19 5714#0: accept4() failed (24: Too many open files)
调试连接数:

3603 2016/04/12 10:24:49 15757#0:
1024 worker_connections are not enough<o:p></o:p>

3604 2016/04/12 10:24:49 15757#0: 1024 worker_connections are not enough

3605 2016/04/12 10:24:49 15757#0: 1024 worker_connections are not enough

3606 2016/04/12 10:24:49 15757#0: 1024 worker_connections are not enough

3607 2016/04/12 10:24:49 15757#0: 1024 worker_connections are not enough

最大文件数修改等

worker_rlimit_nofile 65535;

events {

worker_connections 65535;

}