elasticsearch issue virtual memory on docker swarm

Viewed 16

I have following issue from last 2 days with elasticsearch, I have ES as onenode in docker cluster, server has 64GB of RAM memory and I have assigned jvm (xmx and xms 25GB) and for container +3GB more.

from yesterday I'm receiving following errors:

caused by: java.io.IOException: Map failed: MMapIndexInput(path="/usr/share/elasticsearch/data/nodes/0/indices/4LpLY4eAT72DgUQjzF6omQ/0/index/_bnq.nvd") [this may be caused by lack of enough unfragmented virtual address space or too restrictive virtual memory limits enforced by the operating system, preventing us to map a chunk of 77463 bytes. Please review 'ulimit -v', 'ulimit -m' (both should return 'unlimited'), and 'sysctl vm.max_map_count'

on the server I have defined: ulimit -v unlimited ulimit -m unlimited max_map_count= 262144

elasticsearch has about 4000 indexes and after one hour in docker:

task: non-zero exit (1)"

in docker container for static memory reservation I have:

ulimits:
  memlock:
    soft: -1
    hard: -1
deploy:
  replicas: 1
  resources:
    limits:
      cpus: '8'
      memory: 35G
    reservations:
      cpus: '8'
      memory: 35G

when elasticsearch is working more that 1h docker received error and reload container.

0 Answers
Related