I need to get rid of the pesky "Too many open files in system" limit on OS X 10.7.1.
Is there a way?
According to this helpful article (which I recommend reading):
You can check these with:
You can increase the limits (at your own risk) with:
To make the change permanent, use
(Note: a setting in
Again, from the article:
The command for that is:
That change is also temporary; it only lasts for the current shell session. You can add it to your shell configuration file (
You will need to increase your ulimit settings - it's pretty low on OS X these days - 256 by default. Add
To see the system settings, run this:
It is set quite a bit higher in Lion (10240) on a per process basis than it used to be. But if you are still hitting it there then you can set it higher using the same command with the desired levels. To make the changes permanent /etc/launchd.conf is where you need to add the relevant lines.