chatpal / chatpal-search-standalone

Standalone Server for Chatpal-Search
15 stars 6 forks source link

How to increase Java heap space for Solr? #5

Open ruKurz opened 5 years ago

ruKurz commented 5 years ago

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 commented 5 years ago

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