Elasticsearch fails with error "This can result in part of the JVM being swapped out. Increase RLIMIT_MEMLOCK (ulimit)". What to do?

Well, basically, that means you have too low memlock limit setting in your OS. This can be easily fixed in two steps:

1) Edit /etc/security/limits.conf file and add to the end:

  1. * hard memlock unlimited
  2. * soft memlock unlimited

2) Add a line in the /etc/pam ...

Read now