I've been having a persistent "too many open files in system" error on my machine (OSX 10.7.5).
When I run
sysctl kern.maxfiles and
sysctl kern.maxfilesperproc, both output
This article says those settings default to 12,288 and 10,240, respectively. It says you can permanently change the settings by editing
I've done that. The contents of that file are now:
The permissions on it are
-rw-r--r--, and it belongs to
root in the
This file has no effect on what my system is doing. After restart, if I check the maxfile settings, they are unchanged.
Is there something else controlling these settings, making my defaults lower than what they should be and overriding my explicit settings?
How can I fix these settings?
I've since tried, to no avail:
Setting them to 4000 and 3500 in case the system ignores settings over a certain threshold.
I put the following, not in
/etc/sysctl.conf, but in
sysctl -w kern.maxfiles=4000 sysctl -w kern.maxfilesperproc=3500
Using my shell's configuration file
I put the same commands as above in my
.zshrc, but they don't work without sudo.