Bump file-descriptor ulimit as high as it will go on startup and remove previous workaround.

This reverts commit a7c11b167e. See https://app.asana.com/0/364581412985/472479912325
This commit is contained in:
Nick Martin
2012-02-15 23:36:17 -08:00
parent 7269e01ebd
commit eaaedd3b43
2 changed files with 14 additions and 2 deletions

View File

@@ -388,8 +388,7 @@ var DependencyWatcher = function (deps, app_dir, on_change) {
return new RegExp(pattern);
});
self.exclude_paths = [
path.join(app_dir, '.meteor', 'local'),
path.join(app_dir, 'public')
path.join(app_dir, '.meteor', 'local')
];
// Start monitoring

13
meteor
View File

@@ -78,5 +78,18 @@ else
METEOR="$DEV_BUNDLE/app/meteor/meteor.js"
fi
# Bump our file descriptor ulimit as high as it will go. This is a
# temporary workaround for dependancy watching holding open too many
# files: https://app.asana.com/0/364581412985/472479912325
if [ "$(ulimit -n)" != "unlimited" ] ; then
ulimit -n 16384 > /dev/null 2>&1 || \
ulimit -n 8192 > /dev/null 2>&1 || \
ulimit -n 4096 > /dev/null 2>&1 || \
ulimit -n 2048 > /dev/null 2>&1 || \
ulimit -n 1024 > /dev/null 2>&1 || \
ulimit -n 512 > /dev/null 2>&1
fi
export NODE_PATH="$DEV_BUNDLE/lib/node_modules"
exec "$DEV_BUNDLE/bin/node" "$METEOR" "$@"