From fb5ceb62ff3bdd52de01407f87306eb90aa0f79b Mon Sep 17 00:00:00 2001 From: Jesse Rosenberger Date: Wed, 12 Oct 2016 10:52:46 +0300 Subject: [PATCH] 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. --- meteor | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meteor b/meteor index 2c2a757958..f399fbd52d 100755 --- a/meteor +++ b/meteor @@ -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 || \