[DOCS] Document off-heap swaps under mlocks (#64667) (#64701)

This commit is contained in:
James Rodewig 2020-11-06 07:57:54 -05:00 committed by GitHub
parent 6c1b650e09
commit 8c0155241d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 2 deletions

View File

@ -52,8 +52,14 @@ http://opengroup.org/onlinepubs/007908799/xsh/mlockall.html[mlockall] on
Linux/Unix systems, or
https://msdn.microsoft.com/en-us/library/windows/desktop/aa366895%28v=vs.85%29.aspx[VirtualLock]
on Windows, to try to lock the process address space into RAM, preventing any
Elasticsearch memory from being swapped out. This can be done, by adding this
line to the `config/elasticsearch.yml` file:
{es} heap memory from being swapped out.
NOTE: Some platforms still swap off-heap memory when using a memory lock. To
prevent off-heap memory swaps, <<disable-swap-files,disable all swap files>>
instead.
To enable a memory lock, set `bootstrap.memory_lock` to `true` in
`elasticsearch.yml`:
[source,yaml]
--------------