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
After I had uninstalled and reinstalled Elasticsearch Windows service, it correctly increased the JVM heap size. Just restarting it without reinstalling the service didn't work.