
Roger wrote:
I am running an application server on Red Hat 8.0 and every so often the machine generates an error message "Too many files open" and then locks up. I have to restart the machine from the console to rectify the situation. Can anyone please tell me if there is some configuration setting that I can change to increase the number of permitted files? Is there some command that allows me to monitor the number of open files in the system?
The other reply was for kernel version 2.6-something, but as far as I know, under kernel 2.4.x and earlier, there is a hard-coded limit in the kernel - /usr/include/linux/limits.h has #define OPEN_MAX 256 /* # open files a process may have */ (but that is per-process, not in total). You could install and try the lsof(8) command - I haven't used it much, but it stands for "LiSt Open Files", so it sounds like what you want :p John McPherson