Skip to content

Instantly share code, notes, and snippets.

@flanger001
Created September 2, 2021 16:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save flanger001/61ff8f192a59f3422f28bd430b8b6c55 to your computer and use it in GitHub Desktop.
Save flanger001/61ff8f192a59f3422f28bd430b8b6c55 to your computer and use it in GitHub Desktop.

TIL if you have decided Elasticsearch maybe shouldn't get 50% of your RAM on your local machine you can adjust it with JVM options:

$ elasticsearch_path="$(brew --prefix)/etc/elasticsearch" # Assuming a Homebrew install on a Mac
$ mkdir -p $elasticsearch_path/jvm.options.d && echo "-Xms2g\n-Xmx2g" > $elasticsearch_path/jvm.options.d/heap.options
$ unset elasticsearch_path

Then restart the server:

$ brew services restart elasticesearch-full
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment