Re: Too many files open
Re: Too many files open
- Subject: Re: Too many files open
- From: Allan Nathanson <email@hidden>
- Date: Wed, 2 Jun 2004 05:46:17 -0400
On Jun 2, 2004, at 4:08 AM, Eric Arlotti wrote:
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.
Have you checked out ulimit(3)?
- Allan
_______________________________________________
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.