I recently installed Fedora Core 3 for one of our advertising servers and am running into an interesting problem. The number of allocated file handles continues to grow until it reaches the configured max. Once it reaches the max, messages can be found in the system log.
kernel: VFS: file-max limit 21989 reached
Other messages can also be found
kernel: HighMem: empty
kernel: Out of Memory: Killed process 12736 (crond).
kernel: Memory: 223176k/229312k available (2068k kernel
The server is an advertising server and interestingly enough there is a perl script run from cron every minute that checks to see if there are problems with the server. Our advertising software has been in use since the RedHat 6.2 days and I haven't seen this problem before.
I've done some searching on the web and have taken note to /proc/sys/fs/file-max and /proc/sys/fs/file-nr
file-nr is currently below
6120 0 21989
anyone familiar with the proc structure probably knows file-max is the 3rd column of file-nr.
I've searched the net for a number of days and can't seem to find a solution. Interestingly enough, I've commented out the cron entries related to the health monitoring and the files haven't gone up in the last 20 minutes. Any idea why we'd start having this problem with Fedora?