How to show the used and maximum file handles on Linux?
The /proc/sys/fs/file-nr contains three values. The first value shows the maximum number of files that were opened since the system was started (total allocated number). This second value shows the unused number of allocated file handles. So to find the actual number of used file handles, we need to subtract the second value from the first. Finally, the last value shows the maximum of handles that can be used.
Used 31168 file descriptors (max 1608599)
Do you like this page? Share it with others or help us make it better