Skip to content

Instantly share code, notes, and snippets.

@dinesh16
Forked from lucasdavila/fixup.txt
Created October 6, 2016 08:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dinesh16/fed6c9d9532a08d10e82b5dd75278e06 to your computer and use it in GitHub Desktop.
Save dinesh16/fed6c9d9532a08d10e82b5dd75278e06 to your computer and use it in GitHub Desktop.
Fixing mac os yosemite issue "bash: fork: Resource temporarily unavailable"
# see the current limits
$ sysctl -a | grep maxproc
# increase it
$ sudo sysctl -w kern.maxproc=xxxx
$ sudo sysctl -w kern.maxprocperuid=xxx
# run at startup
$ sudo vim /etc/sysctl.conf
kern.maxproc=xxxx
kern.maxprocperuid=xxxx
$ sudo launchctl limit
$ sudo launchctl limit maxproc <maxprocperuid> <maxproc>
$ sudo launchctl limit maxfiles 512 unlimited
# run at startup
$ sudo vim /etc/launchd.conf
limit maxproc <maxprocperuid> <maxproc>
limit maxfiles 512 unlimited
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment