2

I use Tornado(a python framework) to develope websites, but it often pops me the OSError - too many open files error during high concurrency tests.

One way to solve this is to set the FD limit to a higher number.

What are the cons, or disadvantages of setting a high FD limit? Can I set it arbitrarily to, like 99999999?

MK Yung
  • 4,344
  • 6
  • 30
  • 35

2 Answers2

2

This is a good reference about what are the limitations, and how it affect your system.

Theoretical limit of file descriptors in Linux

Community
  • 1
  • 1
Tharanga Abeyseela
  • 3,255
  • 4
  • 33
  • 45
1

It's safe to set it quite high. Usually the default for desktop OS is quite low. The main disadvantage is the extra memory that is allocated

John La Rooy
  • 295,403
  • 53
  • 369
  • 502