emAmazed / redlamp

Bloggie Bloggie
MIT License
0 stars 1 forks source link

Max Open Files Limits #20

Open emAmazed opened 9 years ago

emAmazed commented 9 years ago

Environment: OSX
Check max files: launchctl limit or launchctl limit maxfiles
To modify the values:
echo 'kern.maxfiles=20480' | sudo tee -a /etc/sysctl.conf
echo -e 'limit maxfiles 20480 unlimited\nlimit maxproc 1000 2000' | sudo tee -a /etc/launchd.conf
echo 'ulimit -n 8192' | sudo tee -a /etc/profile

(or sudo ulimit -S -n xxxx
or sudo launchctl limit maxfiles xxxx xxxx (soft, hard limits))