Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

147
Views
where does nginx opens his file descriptors?

i am experiencing a (23: too many open files in system) error on my nginx due to big load of opening web socket connections requests.

the backend service which runs on completely different machine and receives a proxy_pass from this nginx process. once i reach a certain threshold i receive the error message above. i tried to dig into the nginx documentation but didn't find something useful. where are the file descriptors for those web sockets are getting open and created? is it on the machine where the nginx process runs on, or on the machine where the service runs on?.

i want to increase the limit of allowed open files per process and i am not sure on which machine i need to change it.

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Increase the max file descriptors on the nginx server. The increase needs to happen at the kernel and user or nginx level. The tuning guidelines provide an explanation why:

File descriptors are operating system resources used to represent connections and open files, among other things. NGINX can use up to two file descriptors per connection. For example, if NGINX is proxying, it generally uses one file descriptor for the client connection and another for the connection to the proxied server, though this ratio is much lower if HTTP keepalives are used.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!