site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=rYNTVJ1pTWCwAUpGZOdwizLZ/FdEaOcQC4s0MIF8f48rpaUtzdwFoWwveUmz0AOuq85wtdM0ADACCMoDUfSOT5QGk35NpMWWMb4VfgCDZ+D/wq+4jHoHoxohzJ71wAv11JW21AjVOGlCEE3+RGKElb43oztYkjqCVB6xeV7keXU= On Wed, 2 Mar 2005 16:27:05 +0100, Jaroslav Snajdr <jsnajdr@kerio.com> 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 (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/ jsnajdr%40kerio.com
This email sent to jsnajdr@kerio.com
_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/leimy2k%40gmail.com
This email sent to leimy2k@gmail.com
_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com