How to change Elasticsearch max memory size

后端 未结 11 838
时光取名叫无心
时光取名叫无心 2020-11-30 16:57

I have an Apache server with a default configuration of Elasticsearch and everything works perfectly, except that the default configuration has a max size of 1GB.

I

11条回答
  •  难免孤独
    2020-11-30 17:46

    Instructions for ubuntu 14.04:

    sudo vim /etc/init.d/elasticsearch

    Set

    ES_HEAP_SIZE=512m

    then in:

    sudo vim /etc/elasticsearch/elasticsearch.yml

    Set:

    bootstrap.memory_lock: true

    There are comments in the files for more info

提交回复
热议问题