Created
October 9, 2014 18:00
-
-
Save Tantas/1263d6c1a9ecd634058f to your computer and use it in GitHub Desktop.
Increase OSX file limit for load testing
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
# 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