On Wed, 17 Apr 2002 16:10:35 -0600
"Brett G. Palmer" <[EMAIL PROTECTED]> wrote:

> We run cvs on Redhat 7.0.  CVS runs well for a few weeks but then we
> start to get errors saying the following:
> 
> cvs server: cannot open .cvsignore: Too many open files
> cvs server: cannot open .cvswrappers: Too many open files
> cvs server: cannot open current directory: Too many open files
> 
> We usually have to reboot the server to fix the problem.  The problem
> is becoming more frequent as CVS is used more and more.  This is
> probably a Linux file handle limitation but is there a work around? 
> We are also using the WinCVS client (version 1.3.7.1 Beta), but we
> have also seen this problem on JCvs.  Any help would be greatly
> appreciated.

You can change the maximum number of open files on a Linux using the
following method:

echo 8192 > /proc/sys/fs/file-max

you should also set inode-max to 3 or 4 times file-max.

echo 32768 > /proc/sys/fs/inode-max

You can make these change permanent by editing /etc/sysctl.conf (RedHat
only I believe)

See also:

<http://www.tldp.org/LDP/solrhe/Securing-Optimizing-Linux-RH-Edition-v1.3/chap6sec72.html>

- Rob

Attachment: msg20065/pgp00000.pgp
Description: PGP signature

Reply via email to