Alfresco / alfresco-docker-installer

Generator to build Docker Compose templates to deploy Alfresco Community
Other
140 stars 57 forks source link

Solr - Java memory parameters are ignored #185

Closed luca86r closed 5 months ago

luca86r commented 7 months ago

Hi, the options "-XX:MinRAMPercentage=50 -XX:MaxRAMPercentage=80" specified in the solr6 service under the environment variable "SOLR_OPTS", seem to be ignored.

Starting the container with mem_limit set to 4 GB, the heap size of solr is set to 1GB.

The Solr container uses OpenJDK v17 and I haven't found documentation for this specific JVM; however from Openj9 documentation (https://eclipse.dev/openj9/docs/xxinitialrampercentage/): "If you set a value for -Xms, the -XX:InitialRAMPercentage option is ignored. If you set a value for -Xmx, the -XX:MaxRAMPercentage option is ignored.".

Upon checking the solr.in.sh file, I noticed that the parameters "-Xms1g -Xmx1g" are set.

Possibile solutions:

aborroy commented 7 months ago

Version 0.8.2 should fix this problem.

Waiting to your feedback before closing this issue.

luca86r commented 5 months ago

Version 0.8.2 should fix this problem.

Waiting to your feedback before closing this issue.

I confirm, the issue is now resolved. Thank you