title: How to set memory limit to ElasticSearch in Windows?
body: <p>Is there any possible to limit ElasticSearch working set memory on a windows server 2008 R2?</p>
  
  <p>I tried everything online, but nothing seem to work.</p>
  
  <p>Tried to set (environment vars):
  ES_MIN_MEM
  ES_MAX_MEM
  ES_HEAP_SIZE</p>
  
  <p>In the java service:
  -Xms15g
  -Xmx15g
  -Xss256k</p>
  
  <p>In the YML file:
  bootstrap.mlockall: true</p>
  
  <p>Any idea what am I doing wrong, or if its possible at all to limit RAM in a Windows service?</p>
  
  <p>Thanks!</p>