From 2006073c4152748ba73c2f2371da551e9b8be78a Mon Sep 17 00:00:00 2001 From: Christopher Hubing Date: Wed, 8 Apr 2020 13:12:06 -0400 Subject: [PATCH] adding CATALINA_OPTS --- container_files/tomee/bin/setenv.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/container_files/tomee/bin/setenv.sh b/container_files/tomee/bin/setenv.sh index 2387d613..5245f238 100755 --- a/container_files/tomee/bin/setenv.sh +++ b/container_files/tomee/bin/setenv.sh @@ -1,3 +1,4 @@ CLASSPATH=/opt/tomee/bin/* -JAVA_OPTS="-Dlog4j.configurationFile=/opt/tomee/conf/log4j2.xml -DENV=$ENV -DUSERTOKEN=$USERTOKEN" -LOGGING_MANAGER=-Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager \ No newline at end of file +#JAVA_OPTS="-Dlog4j.configurationFile=/opt/tomee/conf/log4j2.xml -DENV=$ENV -DUSERTOKEN=$USERTOKEN" +CATALINA_OPTS="-Xmx$GROUPER_MAX_MEMORY -XX:+UseG1GC -XX:+UseStringDeduplication -Dlog4j.configurationFile=/opt/tomee/conf/log4j2.xml -DENV=$ENV -DUSERTOKEN=$USERTOKEN $GROUPER_EXTRA_CATALINA_OPTS" +LOGGING_MANAGER=-Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager