For Linux

The number of file descriptors per process is limited to 10,000. You can set the number of file descriptors using ulimit.