I downloaded Solr from dockerhub and I am trying to increase the amount of available memory available to Solr. It seems that the JVM args are set to "-Xms512m -Xmx512" which means that there are only 512 mb available to Solr. How can I increase that limit?
Set the SOLR_HEAP
environment variable when you launch the container.
For example:
docker run -it --rm -e SOLR_HEAP=1024m solr:latest
The running process will then have -Xms1024m -Xmx1024m
.
You could also create a derived image with the required settings.
FROM solr:latest
ENV SOLR_HEAP=1024m