Re: [Vserver] too many open files error

From: Chuck <chuck_at_sbbsnet.net>
Date: Thu 06 Apr 2006 - 23:43:57 BST
Message-Id: <200604061843.57546.chuck@sbbsnet.net>

On Thursday 06 April 2006 01:15 pm, Xavier Montagutelli wrote:
> On Thursday 06 April 2006 19:01, Michael S. Zick wrote:
> > On Thu April 6 2006 11:20, Chuck wrote:
> > Ch> On Thursday 06 April 2006 11:56 am, Xavier Montagutelli wrote:
> > Ch> > On Thursday 06 April 2006 16:46, Chuck wrote:
> > Ch> > > this one is weird. could i be reaching some kind of max on a
gentoo
> > Ch> > > platform?
> > Ch> > >
> > Ch> > > we are running approx 40 vserver guests on a 4 processor dell. our
> > email Ch> > > server is running on the 'host' side.
> > Ch> > >
> > Ch> > > my tip on this came from our email list server. the log stated:
> > Ch> > >
> > Ch> > > 6 10:20:19 error: Still trying to open connection Too many open
> > files Ch> > >
> >
> > A single, multi-thread application?
>
> I forget my UN*X basis : could it simply be related to "ulimit -n", the
> maximum number of open files per process ?
>
>

run from my terminal prompt:

# ulimit -f
unlimited

so this should be ok.

> >
> > There is another limit built into the kernel for applications that use
> > 'select' to get notifications of connection attempts to file descriptors.
> >
> > That limit is the hardcoded size of the file descriptor select structure
> > (in bits). Not sure off-hand how big it is, I think either 64 or 128 bits
> > (open descriptors monitored).
> >
> > You might have to run multiple instances of the e-mail application if this
> > is the cause of the error message.
> >
> > Mike
> >
> > Ch> > > and this is in the log many times. not knowing if this is a
program
> > or Ch> > > system error causing this i am taking the safe route while i
> > wait for the Ch> > > program support people to let me know...
> > Ch> > >
> > Ch> > > is there a setting somewhere in the vserver system, i assume on
the
> > host, Ch> > > that the number of open files can be set? i dont even know
> > what the stock Ch> > > max is..
> > Ch> >
> > Ch> > Perhaps /proc/sys/fs/file-max ?
> > Ch> >
> > Ch>
> > Ch> maybe max files is not the issue. :
> > Ch>
> > Ch> # cat /proc/sys/fs/file-max
> > Ch> 309847
> > Ch>
> > Ch> i would think 309k open files would be sufficient.
> > Ch>
> > Ch> will see what the mailing list software vendor has to say..
> > Ch>
> > Ch> > Just modify the value by echoing the new value
> > Ch> >
> > Ch> > or use sysctl -w fs.file-max= and modify /etc/sysctl.conf
> > Ch> >
> > Ch> > --
> > Ch> > Xavier Montagutelli Tel : +33 (0)5 55 45 77 20
> > Ch> > Service Commun Informatique Fax : +33 (0)5 55 45 77 60
> > Ch> > Universite de Limoges
> > Ch> > 123, avenue Albert Thomas
> > Ch> > 87060 Limoges cedex
> > Ch> > _______________________________________________
> > Ch> > Vserver mailing list
> > Ch> > Vserver@list.linux-vserver.org
> > Ch> > http://list.linux-vserver.org/mailman/listinfo/vserver
> > Ch> >
> > Ch>
> > _______________________________________________
> > Vserver mailing list
> > Vserver@list.linux-vserver.org
> > http://list.linux-vserver.org/mailman/listinfo/vserver
>
> --
> Xavier Montagutelli Tel : +33 (0)5 55 45 77 20
> Service Commun Informatique Fax : +33 (0)5 55 45 77 60
> Universite de Limoges
> 123, avenue Albert Thomas
> 87060 Limoges cedex
> _______________________________________________
> Vserver mailing list
> Vserver@list.linux-vserver.org
> http://list.linux-vserver.org/mailman/listinfo/vserver
>

-- 
Chuck
"...and the hordes of M$*ft users descended upon me in their anger,
and asked 'Why do you not get the viruses or the BlueScreensOfDeath
or insecure system troubles and slowness or pay through the nose 
for an OS as *we* do?!!', and I answered...'I use Linux'. "
The Book of John, chapter 1, page 1, and end of book
_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Thu Apr 6 23:44:16 2006
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Thu 06 Apr 2006 - 23:44:20 BST by hypermail 2.1.8