Re: Too many open files error (EMFILE)
Re: Too many open files error (EMFILE)
- Subject: Re: Too many open files error (EMFILE)
- From: David Leimbach <email@hidden>
- Date: Wed, 2 Mar 2005 08:30:02 -0800
On Wed, 2 Mar 2005 16:27:05 +0100, Jaroslav Snajdr <email@hidden> wrote:
> Hi,
>
> the error I get is really EMFILE (errno 24, Too many open files). There
> are no related kernel messages in any log (console or system).
>
Did you try raising your default ulimits to accept more files? Mac OS
X has "really really low"
default ulimits compared to other unix systems.
ulimit -n.
I work in HPC space where we need lots of file descriptors and I hit
this one all the time.
Dave
> Jarda
>
> On Mar 2, 2005, at 1:02 PM, Quinn wrote:
>
> > At 17:13 +0100 1/3/05, Jaroslav Snajdr wrote:
> >> When my application (mail server) runs for several hours, I start
> >> getting the Too many open files error when opening new file or socket
> >> and I don't know why.
> >
> > That's a weird one. As you mention, there's only a couple of places
> > this error (which is "ENFILE", not "EMFILE", btw) could be coming
> > from, namely fdalloc and getnewvnode. In both cases the system calls
> > tablefull, which logs a syslog entry using the following code:
> >
> > log(LOG_ERR, "%s: table is full\n", tab);
> >
> > where tab is either "file" (fdalloc) or "vnode" (getnewvnode).
> >
> > Is either of these in your console log?
> >
> > [My reading of the default "/etc/syslog.conf" indicates that these
> > sorts of logs would end up in the console, but I'm not exactly a
> > syslog expert so you might want to double check in the syslog man
> > pages.]
> >
> > S+E
> > --
> > Quinn "The Eskimo!"
> > <http://www.apple.com/developer/>
> > Apple Developer Technical Support * Networking, Communications,
> > Hardware
> > _______________________________________________
> > Do not post admin requests to the list. They will be ignored.
> > Darwin-kernel mailing list (email@hidden)
> > Help/Unsubscribe/Update your Subscription:
> > email@hidden
> >
> > This email sent to email@hidden
> >
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Darwin-kernel mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden