The kernel parameters maxfiles and maxfiles_lim control the number of file descriptors available to any one process.
View this book as PDF