If you run into terminal error too many open files
Below are the steps to increase the limit environment setting for maxflies
Show current config:
launchctl limit
maxfiles 256 unlimited
Unlimited doesn't really mean unlimited, hence why you want to do the following:
sudo vi /etc/launchd.conf
Enter the following into the file:
limit maxfiles 16384 32768
Now reboot your machine...
After restart you should see the following:
launchctl limit
maxfiles 16384 32768