
On Tue, 14 Oct 2003, 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?
On my system (kernel 2.6.0-testsomething), there's a file /proc/sys/fs/file-max that defines the maximum number of file handles that can be open on a system at any one time. On my system, it's set to 52420; to change it echo 131072 > /proc/sys/fs/file-max (as root, of course). Congratulate yourself on not running Solaris; that requires a reboot to change. Regards Richard -- Richard Stevenson