File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed
Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -150,6 +150,27 @@ change to system limits made using ``ulimit`` may revert following
150150a system restart. Check your distribution and operating
151151system documentation for more information.
152152
153+ You should typically start :binary:`~bin.mongod` using ``systemctl``,
154+ which uses the ``ulimit`` settings:
155+
156+ .. code-block:: bash
157+
158+ systemctl start mongod.service
159+
160+ If you *do not* start :binary:`~bin.mongod` using ``systemctl``,
161+ ``systemd`` overrides some of the ``ulimit`` settings. For example, if
162+ you start :binary:`~bin.mongod` as shown in the following command, then
163+ a user slice (such as ``user-1000.slice``) ``systemd`` setting is used:
164+
165+ .. code-block:: bash
166+
167+ mongod --config ~/mongod.conf
168+
169+ .. note::
170+
171+ A ``systemd`` user slice limits the resources for the user's
172+ processes.
173+
153174macOS
154175`````
155176
You can’t perform that action at this time.
0 commit comments