From c83f363b4215b0232e647bf7ea9997d3ca5226f4 Mon Sep 17 00:00:00 2001 From: Juraj Roka <95219754+jr-rk@users.noreply.github.com> Date: Thu, 25 Jun 2026 13:49:44 +0200 Subject: [PATCH] Make Solr heap tunable via SOLR_HEAP (default 4g, no behavior change) Backport of dataquest-dev/dspace-angular#1309 to customer/zcu-pub. Translate (not cherry-pick) the single Solr heap line against this branch's actual compose file: the launch uses -p 898${INSTANCE}, 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 caf2a6735f5..74903a6b56a 100644 --- a/docker/docker-compose-rest.yml +++ b/docker/docker-compose-rest.yml @@ -161,7 +161,7 @@ services: cp -r -u /opt/solr/server/solr/configsets/dspace/search/* search precreate-core statistics /opt/solr/server/solr/configsets/dspace/statistics cp -r -u /opt/solr/server/solr/configsets/dspace/statistics/* statistics - exec solr -p 898${INSTANCE} -f -m 4g + exec solr -p 898${INSTANCE} -f -m "${SOLR_HEAP:-4g}" volumes: assetstore: pgdata: