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.
Vagif
On Tuesday, November 25, 2014 2:45:04 PM UTC+1, Vagif Abilov wrote:
Hi,
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 RAM in total).
I have restarted ES and queried its memory usage using _nodes/stat HTTP
GET command. However, it seems that it's still using 1GB:
mem: {
heap_used_in_bytes: 1032367576,
heap_used_percent: 99,
heap_committed_in_bytes: 1037959168,
heap_max_in_bytes: 1037959168,
...
Shouldn't ES adjust its heap memory size after the restart?
Yes, there is another way. On windows, go to ES bin folder and run
service manager
On one of the tabs of ES service properties, you can set min and max heap size. This is how you run multiple ES nodes with different heap size on the same machine.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.