title: How to set the ES_HEAP_SIZE environment variable on OS X
body: <p>Using OS X 10.10.4, Elasticsearch 1.6.0 from Homebrew so server runs as Launch Agent on login:
  <code>/usr/local/bin/elasticsearch --config=/usr/local/etc/elasticsearch/elasticsearch.yml</code></p>
  
  <p>Question: How to set the environment variable ES_HEAP_SIZE to use 2gigabytes of RAM? What should I write and in which file?</p>