summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErnie Hershey <ernie.hershey@10gen.com>2015-03-30 12:50:25 -0400
committerErnie Hershey <ernie.hershey@10gen.com>2015-04-15 16:35:18 -0400
commit7d85928481c882ef9061207020dc225d24d6c2ad (patch)
tree25dbcba7116dc5978aaa01febe7dc7c11de69b98
parent3570d23708260011562d9315d8bcacd45aa4dfee (diff)
downloadmongo-7d85928481c882ef9061207020dc225d24d6c2ad.tar.gz
SERVER-17780 Update init script process ulimit to match recommendations
(cherry picked from commit 47f76710961fb5be17d92e26fb7452f8223afb9f)
-rw-r--r--debian/init.d4
-rwxr-xr-xrpm/init.d-mongod2
-rw-r--r--rpm/init.d-mongod.suse2
3 files changed, 4 insertions, 4 deletions
diff --git a/debian/init.d b/debian/init.d
index 417f7f2ee79..bc2aacd3caa 100644
--- a/debian/init.d
+++ b/debian/init.d
@@ -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
diff --git a/rpm/init.d-mongod b/rpm/init.d-mongod
index 54308cccc0b..aed7793d074 100755
--- a/rpm/init.d-mongod
+++ b/rpm/init.d-mongod
@@ -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"
diff --git a/rpm/init.d-mongod.suse b/rpm/init.d-mongod.suse
index 746177c85d9..b2c7eb20db5 100644
--- a/rpm/init.d-mongod.suse
+++ b/rpm/init.d-mongod.suse
@@ -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