[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Too Many Open Files On System



Interesting. I just looked, it shows I have ~40 free open files left,
so maybe that's it.

What sort of side effects might arise from allowing 4x the number of
open files, if any?


On Fri, 3 Sep 2004 08:14:01 -0700, Stefan O'Rear <stefanor@cox.net> wrote:
> On Fri, Sep 03, 2004 at 10:57:04AM -0400, Mike Ward wrote:
> > Well, it obviously varies, but I just ran "lsof | wc -l" and it returned:
> >
> > mike@sbdcid222:~$ lsof | wc -l
> > 6335
> >
> > I'll try running that next time I run into problems as well.
> >
> >
> > Kernel version is 2.2.20-idepci
> Won't lsof report duped handles multiple times?
> 
> sudo cat /proc/sys/fs/file-nr
> 
> Three numbers: total allocated open files, free open-files, maximum open-files.
> 
> When you get the error, type 'dmesg' and look for:
> 
> VFS: file-max limit 4096 reached
> 
> (The number may differ)
> 
> If that is the error, you can change the max:
> 
> (AS_ROOT) echo 16384 > /proc/sys/fs/file-max
> 
> This:
> grow_inodes: inode-max limit reached
> 
> Calls for:
> 
> echo 65536 > /proc/sys/fs/inode-max
> 
> (Change the exact numbers as needed, both examples are 4x the default)
> 
> >
> > > What kernel version are you using and what is the output of:
> > >
> > > lsof | wc -l
> 
> --
> The world's most effective spam filter:
>         ln -sf /dev/full /var/mail/$USER
> 
> 
> 
> 
> --
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> 
>



Reply to: