Skip to content

Instantly share code, notes, and snippets.

@sr75
Created April 25, 2014 13:18
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sr75/11289265 to your computer and use it in GitHub Desktop.
Save sr75/11289265 to your computer and use it in GitHub Desktop.
increase file limits on OSX Mavericks for terminal error - too many open files

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment