Re: Too many open files error (EMFILE)
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Hi, Jarda On Mar 2, 2005, at 1:02 PM, Quinn wrote: 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? 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/site_archiver%40lists.a... 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). 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: [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 site_archiver@lists.apple.com
participants (1)
-
Jaroslav Snajdr