From 559ee8c49b36096a0f6770c8997c89b42c45a5e9 Mon Sep 17 00:00:00 2001 From: Juraj Roka <95219754+jr-rk@users.noreply.github.com> Date: Thu, 25 Jun 2026 15:07:59 +0200 Subject: [PATCH] Make Solr heap tunable via SOLR_HEAP (default 4g, no behavior change) Backport of dataquest-dev/dspace-angular#1309 to customer/vsb-tuo. Translate (not cherry-pick) the single Solr heap line against this branch's actual compose file: it launches Solr with -p ${SOLR_PORT}, so only the -m 4g argument is changed to -m "${SOLR_HEAP:-4g}". With SOLR_HEAP unset the 4g default is preserved; AlwaysPreTouch no longer forces the full 4g commit when a smaller heap is set. Refs dataquest-dev/dspace-customers#746 Co-Authored-By: Claude Opus 4.8 --- docker/docker-compose-rest.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/docker-compose-rest.yml b/docker/docker-compose-rest.yml index 2c50ffbe815..41a3e7e4fa7 100644 --- a/docker/docker-compose-rest.yml +++ b/docker/docker-compose-rest.yml @@ -146,7 +146,7 @@ services: cp -r /opt/solr/server/solr/configsets/search/* search precreate-core statistics /opt/solr/server/solr/configsets/statistics cp -r /opt/solr/server/solr/configsets/statistics/* statistics - exec solr -p ${SOLR_PORT} -f -m 4g + exec solr -p ${SOLR_PORT} -f -m "${SOLR_HEAP:-4g}" volumes: # Commented out because there are a lot of files in the assetstore assetstore: