/lib/systemd/system/mongodb.service should set LimitNOFILE

Bug #1629890 reported by Jonathan Kamens
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MongoDB
Fix Released
Unknown
mongodb (Ubuntu)
Fix Released
High
Unassigned

Bug Description

https://docs.mongodb.com/manual/reference/ulimit/#linux-distributions-using-systemd documents the limits that should be set on mongod processes. Most of them are (I believe) the default and therefore don't need to be set explicitly, but the default maximum number of open files is 1024, which is much lower than mongodb needs. The /lib/systemd/system/mongodb.service should specify LimitNOFILE=64000 in the Service section.

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: mongodb-server 1:2.6.10-0ubuntu1
ProcVersionSignature: Ubuntu 4.4.0-38.57-generic 4.4.19
Uname: Linux 4.4.0-38-generic x86_64
NonfreeKernelModules: nvidia_uvm nvidia_modeset nvidia
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: amd64
CurrentDesktop: Unity
Date: Mon Oct 3 10:07:59 2016
InstallationDate: Installed on 2016-01-16 (261 days ago)
InstallationMedia: Ubuntu 15.10 "Wily Werewolf" - Release amd64 (20151021)
SourcePackage: mongodb
UpgradeStatus: Upgraded to xenial on 2016-04-28 (158 days ago)

Revision history for this message
Jonathan Kamens (jik) wrote :
Joshua Powers (powersj)
Changed in mongodb (Ubuntu):
importance: Undecided → Wishlist
status: New → Triaged
Revision history for this message
Robie Basak (racb) wrote :

Some background at: https://lists.ubuntu.com/archives/ubuntu-devel/2010-September/031446.html

Presumably mongodb can handle a higher limit securely given that they have documented it, so we should be able to change it.

tags: added: bitesize
Joshua Powers (powersj)
Changed in mongodb (Ubuntu):
importance: Wishlist → High
Joshua Powers (powersj)
Changed in mongodb (Ubuntu):
assignee: nobody → Joshua Powers (powersj)
Joshua Powers (powersj)
Changed in mongodb (Ubuntu):
status: Triaged → In Progress
Revision history for this message
Joshua Powers (powersj) wrote :

Filed bug and patch with Debian with the suggested changes per the MongoDB documentation.

Changed in mongodb:
status: Unknown → New
Joshua Powers (powersj)
Changed in mongodb (Ubuntu):
status: In Progress → Confirmed
assignee: Joshua Powers (powersj) → nobody
Changed in mongodb:
status: New → Fix Committed
Changed in mongodb:
status: Fix Committed → Fix Released
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Fixed since 1:3.2.16-1
Thereby in >=Artful

Changed in mongodb (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.