Reputation: 598
Using OS X 10.10.4, Elasticsearch 1.6.0 from Homebrew so server runs as Launch Agent on login:
/usr/local/bin/elasticsearch --config=/usr/local/etc/elasticsearch/elasticsearch.yml
Question: How to set the environment variable ES_HEAP_SIZE to use 2gigabytes of RAM? What should I write and in which file?
Upvotes: 2
Views: 1323
Reputation: 598
Found an answer:
open the LaunchAgent (or Daemon) plist. In my case:
~/Library/LaunchAgents/homebrew.mxcl.elasticsearch.plist
Add:
<key>EnvironmentVariables</key>
<dict>
<key>ES_HEAP_SIZE</key>
<string>2g</string>
</dict>
Upvotes: 5