Too many files open
Too many files open
- Subject: Too many files open
- From: Eric Arlotti <email@hidden>
- Date: Wed, 2 Jun 2004 10:08:50 +0200
Hello,
My application is a Web server based on 4th Dimension. It uses a
third-party library to manage TCP connections.
In some cases, when many listening sockets are created, we get a -42
error (too many files open) on file manager calls. I suppose that this
means that we have reached the maximum number of files or sockets that
the system can handle but I don't really know how I can tune Mac OS X
kernel to handle more.
First, I have tried to use the sysctl command and increase
kern.maxfiles and kern.maxfilesperproc but nothing changed (with or
without rebooting). I have also tried to change kern.ipc.maxsockets but
I get a "oid 'kern.ipc.maxsockets' is read only" message.
I looked for information about FreeBSD kernel. I have found something
about a file named "loader.conf" (/boot/loader.conf) that would contain
system configuration but I couldn't find it in Mac OS X system.
I suppose that there are others system variables to tune but I don't
know them. And I also don't know how to make these changes permanent
after a system reboot.
Any help or advice would be greatly appreciated.
Thanks.
Eric Arlotti
email@hidden
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.