Permalink
Browse files

SERVER-17780 Update init script process ulimit to match recommendations

  • Loading branch information...
ehershey committed Mar 30, 2015
1 parent ef19e26 commit 47f76710961fb5be17d92e26fb7452f8223afb9f
Showing with 4 additions and 4 deletions.
  1. +2 −2 debian/init.d
  2. +1 −1 rpm/init.d-mongod
  3. +1 −1 rpm/init.d-mongod.suse
View
@@ -133,9 +133,9 @@ start_server() {
# In bash, it's -u
if readlink /proc/$$/exe | grep -q dash
then
ulimit -p 32000
ulimit -p 64000
else
ulimit -u 32000
ulimit -u 64000
fi
# Start the process using the wrapper
View
@@ -57,7 +57,7 @@ start()
ulimit -v unlimited
ulimit -n 64000
ulimit -m unlimited
ulimit -u 32000
ulimit -u 64000
echo -n $"Starting mongod: "
daemon --user "$MONGO_USER" --check $mongod "$NUMACTL $mongod $OPTIONS >/dev/null 2>&1"
View
@@ -62,7 +62,7 @@ start()
ulimit -v unlimited
ulimit -n 64000
ulimit -m unlimited
ulimit -u 32000
ulimit -u 64000
echo -n "Starting mongod: "
$NUMACTL /sbin/start_daemon -u "$MONGO_USER" -p "$PIDFILEPATH" $mongod $OPTIONS >/dev/null 2>&1

0 comments on commit 47f7671

Please sign in to comment.