From 6a1ed386fd27a3e0c07778a0af99924e898b0a9e Mon Sep 17 00:00:00 2001 From: Jose Blanco Date: Fri, 13 Dec 2024 15:00:20 -0500 Subject: [PATCH] allocate more heap for dspace scripts --- dspace/bin/dspace | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dspace/bin/dspace b/dspace/bin/dspace index 7d5d678d0f6e..265b7d60f653 100644 --- a/dspace/bin/dspace +++ b/dspace/bin/dspace @@ -36,7 +36,8 @@ fi #Allow user to specify java options through JAVA_OPTS variable if [ "$JAVA_OPTS" = "" ]; then #Default Java to use 256MB of memory - JAVA_OPTS="-Xmx256m -Dfile.encoding=UTF-8" + #JAVA_OPTS="-Xmx256m -Dfile.encoding=UTF-8" + JAVA_OPTS="-Xmx4096m -Xms2048m -Dfile.encoding=UTF-8" fi # Now invoke Java