Skip to content

Commit 3bd66ba

Browse files
authored
[DOCS] Clarify memlock settings in /etc/security/limits.conf (#66694) (#67000)
1 parent 8cd1d98 commit 3bd66ba

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

docs/reference/setup/sysconfig/swap.asciidoc

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,15 @@ Elasticsearch doesn't have permission to lock memory. This can be granted as
8787
follows:
8888

8989
`.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`>>.
90+
Set <<ulimit,`ulimit -l unlimited`>> as root before starting {es}.
91+
Alternatively, set `memlock` to `unlimited` in `/etc/security/limits.conf`:
92+
+
93+
[source,sh]
94+
----
95+
# allow user 'elasticsearch' mlockall
96+
elasticsearch soft memlock unlimited
97+
elasticsearch hard memlock unlimited
98+
----
9499

95100
RPM and Debian::
96101

0 commit comments

Comments
 (0)