Last active
January 25, 2016 20:00
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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