Hi all,
We're getting this error (24: Too many open files) in a proxy server that we handle while trying to open a file.
Manpage for open() states that it returns this error when it reaches the max open files limit for the process, but we have these numbers:
As you can see, we have less than 60 thousand open files at kernel level, and probably 99% of these is opened by our proxy process. So, how can the system return EMFILE when we are using mere 5% of the max limit?
I'm a little confused here :\. Any clues?
We're getting this error (24: Too many open files) in a proxy server that we handle while trying to open a file.
Manpage for open() states that it returns this error when it reaches the max open files limit for the process, but we have these numbers:
Code:
# sysctl kern.maxfiles kern.maxfilesperproc kern.openfiles
kern.maxfiles: 1048576
kern.maxfilesperproc: 1048576
kern.openfiles: 58428
As you can see, we have less than 60 thousand open files at kernel level, and probably 99% of these is opened by our proxy process. So, how can the system return EMFILE when we are using mere 5% of the max limit?
I'm a little confused here :\. Any clues?