<p dir="auto">I'm running my nodes with<br>
<code class="notranslate">bootstrap.mlockall: true</code><br>
and I have verified that the memory is allocated using task manager and if I run<br>
<code class="notranslate">curl http://localhost:9200/_nodes/process?pretty</code><br>
it's confirmed the lock's in place.</p>
<p dir="auto">I've experienced that a node might "loose" some of the previously allocated memory, where instead I see that memory has been allocated to lucene index files as mapped files.</p>
<p dir="auto">As soon as there's load on the node (assuming it's trying to use the expected available heap memory) the cluster turns red, shows all shards assigned to the node as unassigned. Nothing is logged when it happens.</p>
<p dir="auto">I'm using Windows 2012 R2 machine.</p>
<p dir="auto">I have set my Heap Size in Environment variable as follows<br>
ES_HEAP_SIZE<br>
4g</p>
<p dir="auto">After setting the heap size, i have installed Elasticsearch as windows service using command</p>
<blockquote>
<p dir="auto">service.bat install</p>
</blockquote>
<p dir="auto">When i started the service, Elasticsearch services has taken 4GB properly (Checked in Taskmanger.exe)</p>
<p dir="auto">After some time, the memory used by elasticsearch service is came down to 1 GB.</p>
<p dir="auto">Is this expected?</p>
<p dir="auto">Helps much appreciated :)</p>