Elasticsearch reports default heap memory size after setting environment variable

前端 未结 4 1620
太阳男子
太阳男子 2020-12-30 12:09

In attempt to increase JVM heap size for Elasticsearch on a Windows box, I defined the following environment variable:

ES_HEAP_SIZE=6g

(The machine has 12G R

4条回答
  •  长情又很酷
    2020-12-30 12:45

    From the notes on running ES as a service on windows:

    Note that the environment configuration options available during the installation are copied and will be used during the service lifecycle. This means any changes made to them after the installation will not be picked up unless the service is reinstalled.

    If you don't want to uninstall and re-install, you can use the service manager to make the change. Run >service manager

    Then select the 'Java' Tab

    Java Tab

    Change the memory pool settings, hit 'Apply' and restart the service.

    enter image description here

提交回复
热议问题