NGINX error 24 and worker_rlimit_nofile
We installed NGINX on cPanel 94 using the command line tool.
On a high traffic site (around 1000 concurrent visitors) we got several "24: Too many open files" errors
We increased the worker_rlimit_nofile parameter on nginx.conf to 3000
Is that the only change needed?
If I check the ulimit, the open files parameter is set to 4096
Thank you!
-
Thank you for you reply. How can I know if the problem was nginx or ulimit related? I misstyped, right now worker_rlimit_nofile is 30000, and ulimit open files is 4096. I should increase that last one too? I will do some stress test before the next event. 0 -
I realized that ulimits are a per user basis. I checked the file limits.conf has nginx soft nofile 30000 nginx hard nofile 50000 So actually nginx is able to open that quantity of files, right? Sorry, I am newbie with nginx 0 -
I'm new to nginx as well, especially now that it's something we support :D That's specifically what I was looking for - the nginx user limits. As long as that are in place I would expect it to be able to handle that number of files just fine now that you'd made the adjustment. 0
Please sign in to leave a comment.
Comments
4 comments