[SERVER-17780] Init script sets process ulimit to different value compared to documentation Created: 28/Mar/15 Updated: 25/Apr/16 Resolved: 30/Mar/15 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Packaging |
| Affects Version/s: | None |
| Fix Version/s: | 2.6.10, 3.0.3, 3.1.1 |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Andrew Ryder (Inactive) | Assignee: | Ernie Hershey |
| Resolution: | Done | Votes: | 2 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||
| Operating System: | ALL | ||||||||
| Backport Completed: | |||||||||
| Sprint: | BUILD 1 04/03/15 | ||||||||
| Participants: | |||||||||
| Description |
|
On rhel 6.6 (mongodb was installed with rpm) the issue of ulimits, documentation says the following:
i.e open file and process ulimit (soft and hard) should be set to 64000. In the mongod init script (/etc/init.d/mongod), the start function sets process ulimit to 32000:
Here is a link to git : https://github.com/mongodb/mongo/blob/400dabd20809c561d8de21438d4bb7c682129641/rpm/init.d-mongod#L60 While documentation recommends setting ulimit to 64000. It is possible this is a documentation bug. If so, please move to DOCS. Additionally, if /etc/security/limits.d/99-mongodb-nproc.conf file is created (as documentation recommends):
Then the ulimit set by the init script will be run over by the ulimit of 99-mongodb-nproc.conf file, and the ulimit will be set to the recommended. |
| Comments |
| Comment by Githook User [ 06/May/15 ] |
|
Author: {u'username': u'ehershey', u'name': u'Ernie Hershey', u'email': u'ernie.hershey@10gen.com'}Message: (cherry picked from commit 47f76710961fb5be17d92e26fb7452f8223afb9f) |
| Comment by Githook User [ 15/Apr/15 ] |
|
Author: {u'username': u'ehershey', u'name': u'Ernie Hershey', u'email': u'ernie.hershey@10gen.com'}Message: (cherry picked from commit 47f76710961fb5be17d92e26fb7452f8223afb9f) |
| Comment by Githook User [ 30/Mar/15 ] |
|
Author: {u'username': u'ehershey', u'name': u'Ernie Hershey', u'email': u'ernie.hershey@10gen.com'}Message: |