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.
/etc/security/limits.conf
1 parent 8cd1d98 commit 3bd66baCopy full SHA for 3bd66ba
docs/reference/setup/sysconfig/swap.asciidoc
@@ -87,10 +87,15 @@ Elasticsearch doesn't have permission to lock memory. This can be granted as
87
follows:
88
89
`.zip` and `.tar.gz`::
90
-
91
- Set <<ulimit,`ulimit -l unlimited`>> as root before starting Elasticsearch,
92
- or set `memlock` to `unlimited` in
93
- <<limits.conf,`/etc/security/limits.conf`>>.
+Set <<ulimit,`ulimit -l unlimited`>> as root before starting {es}.
+Alternatively, set `memlock` to `unlimited` in `/etc/security/limits.conf`:
++
+[source,sh]
94
+----
95
+# allow user 'elasticsearch' mlockall
96
+elasticsearch soft memlock unlimited
97
+elasticsearch hard memlock unlimited
98
99
100
RPM and Debian::
101
0 commit comments