Mac OS X - too many open files....
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...