Skip to content

Instantly share code, notes, and snippets.

@mhupman
Created September 1, 2015 20:49
Show Gist options
  • Save mhupman/64f893c9b578f59b24eb to your computer and use it in GitHub Desktop.
Save mhupman/64f893c9b578f59b24eb to your computer and use it in GitHub Desktop.
Increase ulimit on Yosemite
# Source: http://blog.mact.me/2014/10/22/yosemite-upgrade-changes-open-file-limit
# Add the following to your to ~/.bash_profile
ulimit -n 65536 65536
# Run the following commands in the terminal
$ echo kern.maxfiles=65536 | sudo tee -a /etc/sysctl.conf
$ echo kern.maxfilesperproc=65536 | sudo tee -a /etc/sysctl.conf
$ sudo sysctl -w kern.maxfiles=65536
$ sudo sysctl -w kern.maxfilesperproc=65536
$ ulimit -n 65536 65536
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment