[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: |
|
||||||||
| 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 |