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

How to increase Java heap space for Solr? #5

Open
ruKurz opened this issue Nov 16, 2018 · 1 comment
Open

How to increase Java heap space for Solr? #5

ruKurz opened this issue Nov 16, 2018 · 1 comment
Labels
faq Frequently Asked Questions

Comments

@ruKurz
Copy link

ruKurz commented Nov 16, 2018

I want to increase the heap space.

As the Solr doc says: https://lucene.apache.org/solr/guide/7_2/taking-solr-to-production.html#memory-and-gc-settings

One should use the SOLR_JAVA_MEM variable in the include file solr.in.sh .

SOLR_JAVA_MEM="-Xms10g -Xmx10g"

Since this solr.in.sh is taken from the solr alpine image, I'm wondering how to set the heap space in a docker environment.

Any help appreciated!

@ja-fra
Copy link
Contributor

ja-fra commented Jan 21, 2019

Quoting from hub.docker.com/_/solr:

In Solr it is common to configure settings in solr.in.sh, as documented in the Solr Reference Guide.

In docker-solr you can simply pass these environment variables to the container. For example:

$ docker run -d -P -e SOLR_HEAP=800m solr

@ja-fra ja-fra added the faq Frequently Asked Questions label Jan 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
faq Frequently Asked Questions
Projects
None yet
Development

No branches or pull requests

2 participants