How to change Elasticsearch max memory size

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

    For anyone looking to do this on Centos 7 or with another system running SystemD, you change it in

    /etc/sysconfig/elasticsearch 
    

    Uncomment the ES_HEAP_SIZE line, and set a value, eg:

    # Heap Size (defaults to 256m min, 1g max)
    ES_HEAP_SIZE=16g
    

    (Ignore the comment about 1g max - that's the default)

提交回复
热议问题