Skip to content

Instantly share code, notes, and snippets.

@Tantas
Created October 9, 2014 18:00
Show Gist options
  • Save Tantas/1263d6c1a9ecd634058f to your computer and use it in GitHub Desktop.
Save Tantas/1263d6c1a9ecd634058f to your computer and use it in GitHub Desktop.
Increase OSX file limit for load testing
# Issues load testing a server on OSX, need to increase the OS limitations to get some real numbers out of everything
# Check what the current values are
sysctl kern.maxfiles
sysctl kern.maxfilesperproc
ulimit -S -n
# Increase the files per process
sudo sysctl -w kern.maxfiles=1048600
sudo sysctl -w kern.maxfilesperproc=1048576
ulimit -S -n 1048576
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment