Hello,
How can I prevent ElasticSearch 1.7 from swapping when running inside a docker container?
I am running the container with the -memory-swap=-1
flag, and still seeing around 500 MB of swapping.
Is this normal?
Also tried to add bootstrap.mlockall: true
to the elasticsearch.yml file, but then got the message:
Unable to lock JVM memory (ENOMEM). This can result in part of the JVM being swapped out. Increase RLIMIT_MEMLOCK (ulimit).
Is there any documented way to achieve this?
Thanks.