This is really annoying. Why something has to be simple if it can be complicated?
For some reason on Mac OS X commands: 'ulimit' and 'sysctl' works fine but are actually useless. Don't count on them if you want to change maximum number of open files in your system. Fortunately this forum threads comes to help. To save you from reading through all of this here is how it goes:
To check limits on your system run: 'launchctl limit'. To change max number of open files run: 'launchctl limit maxfiles 400000 unlimited'. To change the setting permanently add to the file: '/etc/launchd.conf' following line:
limit maxfiles 400000 unlimited
This doesn't however work for maxproc setting and please don't ask my why. I am asking...
Comments
The configuration below
Doesn't work for me (Mac OS
Doesn't work for me (Mac OS 10.6.3). Set maxfiles in /etc/launchd.conf to 1024, but ulimit still reports 256 after reboot. Any idea why?