Skip to content

Commit 6f9e483

Browse files
jason-price-mongodbjeff-allen-mongo
authored andcommitted
DOCS-14846 non system user ulimit
1 parent c7ca819 commit 6f9e483

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

source/reference/ulimit.txt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,27 @@ change to system limits made using ``ulimit`` may revert following
150150
a system restart. Check your distribution and operating
151151
system 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+
153174
macOS
154175
`````
155176

0 commit comments

Comments
 (0)