Skip to content

Instantly share code, notes, and snippets.

@dmitrydanilich
Last active January 25, 2016 20:00
Show Gist options
  • Save dmitrydanilich/cbdcf7aeb2294a24ae5e to your computer and use it in GitHub Desktop.
Save dmitrydanilich/cbdcf7aeb2294a24ae5e to your computer and use it in GitHub Desktop.
OSX has a ridiculously low limit on the maximum number of open files. If you use OSX to develop Node applications - or even if you just use Node tools like grunt or gulp - you've no doubt run into this issue.
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