Use of bootstrap.memory_lock

Hi Team,

What is the use of the parameter in elasticsearch.yml file bootstrap.memory_lock and how it impacts the performance of elastic cluster. Is it related JVM heap memory.

Please help me to understand.

Thanks,
Debasis

See these docs:

TLDR we recommend you do not set bootstrap.memory_lock and instead just disable all swapping.

Thanks. As per the thread , we need to set the bootstrap.memory_lock: true but in our environment once we updated the yml file the service get failed. So not able to digest the relation between JVM and the above parameter. Could you please help me to understand this parameter.

try to lock the process address space into RAM, preventing any Elasticsearch heap memory from being swapped out.

Thanks,
Debasis