Skip to main content

NGINX error 24 and worker_rlimit_nofile

Comments

4 comments

  • cPRex Jurassic Moderator
    Hey there! The Nginx documentation says the following about that value: "Changes the limit on the maximum number of open files (RLIMIT_NOFILE) for worker processes. Used to increase the limit without restarting the main process."
    0
  • mfigge
    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
  • mfigge
    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
  • cPRex Jurassic Moderator
    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.