How to change Elasticsearch max memory size

后端 未结 11 829
时光取名叫无心
时光取名叫无心 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:53

    Previous answers were insufficient in my case, probably because I'm on Debian 8, while they were referred to some previous distribution.

    On Debian 8 modify the service script normally place in /usr/lib/systemd/system/elasticsearch.service, and add Environment=ES_HEAP_SIZE=8G just below the other "Environment=*" lines.

    Now reload the service script with systemctl daemon-reload and restart the service. The job should be done!

提交回复
热议问题