My big Mac problem is that, once a day or so, my build process stops working because subprocesses start erroring out on "too many open files in system".
Every single time, I google the solution for "too many open files in system", and I sigh and once again close Firefox to free up enough of these mysterious "open file" resources. Like, there
is a solution, but look at this ****:
https://superuser.com/questions/4337...on-os-x-10-7-1
Quote:
You can increase the limits (at your own risk) with:
sysctl -w kern.maxfiles=20480 (or whatever number you choose)
sysctl -w kern.maxfilesperproc=18000 (or whatever number you choose)
Quote:
To make the change permanent, use sudo to put your settings in /etc/sysctl.conf (which you may have to create), like this:
kern.maxfiles=20480
kern.maxfilesperproc=18000
Quote:
Note: In OS X 10.10 or lower, you can add setting in /etc/launchd.conf like limit maxfiles and it will override whatever you put here.
Quote:
Again, from the article:
Once you’ve done this, the kernel itself will have a maximum number of files but the shell might not. And since most processes that will take up this many files are going to be initiated by the shell you’re gonna want to increase that.
The command for that is:
ulimit -S -n 2048 # or whatever number you choose
That change is also temporary; it only lasts for the current shell session.
Jesus H ****ing Christ, so:
- I can increase these to any limit I choose (then why is there a limit??), but
- it won't be
permanent unless I do something else, and
- that
permanent change might be different depending on my version, and
- it's possible none of that matters depending on whether we're talking
shell processes, and are these shell processes, and
- the command for
that is
not permanent
IT'S TOO MUCH. So I close Firefox and leave the mental strain for another day. Repeat ad nauseum.