Skip to content

Instantly share code, notes, and snippets.

@batizhevsky
Created January 9, 2014 19:20
Show Gist options
  • Save batizhevsky/8340204 to your computer and use it in GitHub Desktop.
Save batizhevsky/8340204 to your computer and use it in GitHub Desktop.
os x limits
$ sysctl kern.maxfiles
kern.maxfiles: 12288
$ sysctl kern.maxfilesperproc
kern.maxfilesperproc: 10240
$ sudo sysctl -w kern.maxfiles=1048600
kern.maxfiles: 12288 -> 1048600
$ sudo sysctl -w kern.maxfilesperproc=1048576
kern.maxfilesperproc: 10240 -> 1048576
$ ulimit -S -n
256
$ ulimit -S -n 1048576
$ ulimit -S -n
1048576
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment