Increase the value of the first ulimit max open files change attempt

Make the first attempt 32768 instead of 16384 since some users have large numbers of files or node_modules trees (meteor/meteor#6952).  This hasn't been raised since Meteor started watching many more files nor since the addition of native NPM.
This commit is contained in:
Jesse Rosenberger
2016-10-12 10:52:46 +03:00
committed by Ben Newman
parent 3c3352be12
commit fb5ceb62ff

3
meteor
View File

@@ -115,7 +115,8 @@ METEOR="$SCRIPT_DIR/tools/index.js"
# Try higher ulimit maxfiles settings until permitted by the kernel
if [ "$(ulimit -n)" != "unlimited" ] && ! [ "$(ulimit -n)" -gt 16384 ] ; then
if [ "$(ulimit -n)" != "unlimited" ] && ! [ "$(ulimit -n)" -gt 32768 ] ; then
ulimit -n 32768 > /dev/null 2>&1 || \
ulimit -n 16384 > /dev/null 2>&1 || \
ulimit -n 8192 > /dev/null 2>&1 || \
ulimit -n 4096 > /dev/null 2>&1 || \