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
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

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