We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2db0da9 commit 9f8a1b1Copy full SHA for 9f8a1b1
files/mongodb.service
@@ -5,8 +5,24 @@ Documentation=man:mongod(1)
5
[Service]
6
User=mongodb
7
ExecStart=/usr/bin/numactl --interleave=all /usr/bin/mongod --config /etc/mongod.conf
8
-LimitNOFILE=65535
9
-LimitNPROC=65535
+# file size
+LimitFSIZE=infinity
10
+# cpu time
11
+LimitCPU=infinity
12
+# virtual memory size
13
+LimitAS=infinity
14
+# open files
15
+LimitNOFILE=64000
16
+# processes/threads
17
+LimitNPROC=64000
18
+# locked memory
19
+LimitMEMLOCK=infinity
20
+# total threads (user+kernel)
21
+TasksMax=infinity
22
+TasksAccounting=false
23
+
24
+# Recommended limits for for mongod as specified in
25
+# http://docs.mongodb.org/manual/reference/ulimit/#recommended-settings
26
27
[Install]
28
WantedBy=multi-user.target
0 commit comments