[SERVER-6443] Packages should set ulimit -u in init/startup scripts Created: 13/Jul/12  Updated: 10/Dec/14  Resolved: 19/Nov/13

Status: Closed
Project: Core Server
Component/s: Packaging
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Scott Hernandez (Inactive) Assignee: Ernie Hershey
Resolution: Duplicate Votes: 2
Labels: initscript, ulimit
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-10931 Init script in RPM sets ulimit too low Closed
Backwards Compatibility: Fully Compatible
Operating System: Linux
Participants:

 Description   

In addition to setting -n (open files) we should also -u (max processes/threads) as well.

Noticed it wasn't set here at least:https://github.com/mongodb/mongo/blob/master/rpm/init.d-mongod#L69



 Comments   
Comment by Kevin J. Rice [ 15/Mar/13 ]

Note you should also set/verify:

for large numbers of shards (~50), with 40+ mongos's, you'll run out of pids also. You must set (typically w/ sysctl -w):

kernel.pid_max
vm.max_map_count = 2*pid_max

Generated at Thu Feb 08 03:11:41 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.