Hello,<br><br>I used to use worker_connections but wen I use it, I got a lot of too many open files in the error log.<br><br>Now, I changed it to worker_rlimit_nofile 10240 and the problem has been solved (I google it and found the solution).<br>
<br>I just want to ask, what&#39;s the differences between worker_connections and worker_rlimit_nofile? Why worker_connections will casue too many open files problem? Thanks.<br><br>#user  nobody;<br>worker_processes  2;<br>
worker_rlimit_nofile 10240;<br><br>#error_log  logs/error.log;<br>#error_log  logs/error.log  notice;<br>#error_log  logs/error.log  info;<br><br>#pid        logs/nginx.pid;<br><br><br>events {<br>#    worker_connections  10240;<br>
}<br><br>Max<br><br>