Re: Too many files open
Re: Too many files open
- Subject: Re: Too many files open
- From: Justin Walker <email@hidden>
- Date: Wed, 2 Jun 2004 09:05:18 -0700
On Jun 2, 2004, at 1:58, Eric Arlotti wrote:
Justin,
Thanks a lot for your help.
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.
What does "nothing changed" mean? Also, on 10.3.x, I don't see
'kern.maxfiles'.
I mean that my application still continues to display the -42 error
despite the change in 'kern.maxfiles' and 'kern.maxfilesperproc'. So I
wasn't sure that the the kernel was aware of the changes.
The first thing you need to do is (still) check the status of the
program's open file descriptors (using 'lsof') at the point it runs
out.
Also, from the Department of Left Field Questions, are you sure that
the application that is complaining is the one that is actually seeing
the error, and not relaying a problem seen in some background program?
Changing maxfiles on the fly will not help an already-running program.f
I tried to reboot but I lost all my changes.
That's been addressed. Note that 'sysctl' has no effect on the on-disk
copy of the kernel; it only affects the running copy.
I can see 'kern.maxfiles' when typing 'sysctl -a' on 10.3.4
Oops. Turns out, I had a hand-rolled ccpy of 'sysctl' in my ~bin
directory. Blush.
Regards,
Justin
--
Justin C. Walker, Curmudgeon-At-Large *
Institute for General Semantics | It's not whether you win or
lose...
| It's whether *I* win or lose.
*--------------------------------------*-------------------------------*
_______________________________________________
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.