Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust recommended JVM Memory settings #133

Open
vanEgmond opened this issue Jul 6, 2022 · 1 comment
Open

Adjust recommended JVM Memory settings #133

vanEgmond opened this issue Jul 6, 2022 · 1 comment
Labels

Comments

@vanEgmond
Copy link

Currently the README recommends:

solr_xms: "256M"
solr_xmx: "512M"

Memory settings for the JVM. These should be set as high as you can allow for best performance and to reduce the chance of Solr restarting itself due to OOM situations.

However as per the Solr reference documentation: https://solr.apache.org/guide/8_11/jvm-settings.html

Lucene/Solr makes extensive use of MMapDirectory, which uses RAM not reserved for the JVM for most of the Lucene index. Therefore, as much memory as possible should be left for the operating system to use for this purpose.

Ensuring that the systems have enough RAM which is not allocated to the JVM heap is paramount for performance, and should be around 25-50% of total RAM. Not to be confused with the recommended 25-50% headroom over the minimum tested JVM Heap usage mentioned in the documentation, specific per setup/use-case.

@geerlingguy
Copy link
Owner

Yeah, I think we could update those suggestions (and maybe bump the defaults to at least 512/1G) since when I wrote this originally, I think it was on Solr 1.4 or so :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants