<div dir="ltr"><div><div><div><div><div><div>Hi,<br><br></div>I'm using the ubuntu package from <a href="http://nginx.org">nginx.org</a>.<br><br></div>In the package from the official ubuntu repo, you can set file descriptor limit by changing /etc/default/nginx<br>
# Check if the ULIMIT is set in /etc/default/nginx<br>if [ -n "$ULIMIT" ]; then<br>    # Set the ulimits<br>    ulimit $ULIMIT<br>fi<br></div>Is there a reason this setting is missing from the <a href="http://nginx.org">nginx.org</a> package?<br>
<br></div></div>I increased the limit but checking /proc/<pid>/limits still shows the default.<br>Should it be enough to set the soft and hard nofile limits in /etc/security/limits.conf<br></div><div>or do I have to set ulimit $ULIMIT in the init.d script?<br>
<br></div><div>Are there plans to use upstart instead of init.d script?<br></div><div><br></div>Thanks<br><div><div><div><div><br><br></div></div></div></div></div>