diff options
author | Ernie Hershey <ernie.hershey@10gen.com> | 2015-03-30 12:50:25 -0400 |
---|---|---|
committer | Ernie Hershey <ernie.hershey@10gen.com> | 2015-03-30 12:50:25 -0400 |
commit | 47f76710961fb5be17d92e26fb7452f8223afb9f (patch) | |
tree | ef4ce805c5c2d4370655055559851daef5270034 | |
parent | ef19e2624fdda864e33ceb5d88cf7a056e2b76b8 (diff) | |
download | mongo-47f76710961fb5be17d92e26fb7452f8223afb9f.tar.gz |
SERVER-17780 Update init script process ulimit to match recommendations
-rw-r--r-- | debian/init.d | 4 | ||||
-rwxr-xr-x | rpm/init.d-mongod | 2 | ||||
-rw-r--r-- | rpm/init.d-mongod.suse | 2 |
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 |