From 0cecd0baa3cbc3f870670911d27db2fae8feac83 Mon Sep 17 00:00:00 2001 From: abatos Date: Fri, 9 Jun 2017 09:36:30 -0400 Subject: Configurable max heap size and PID fix Change-Id: I6e4ae9fd1c3e64e0d470c044ade0387045123f60 Signed-off-by: abatos --- src/main/bin/start.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main') diff --git a/src/main/bin/start.sh b/src/main/bin/start.sh index f35b1f1..cb1e9a9 100644 --- a/src/main/bin/start.sh +++ b/src/main/bin/start.sh @@ -19,7 +19,8 @@ PROPS="$PROPS -DAJSC_SERVICE_NAMESPACE=model-loader" PROPS="$PROPS -DAJSC_SERVICE_VERSION=v1" PROPS="$PROPS -Dserver.port=8080" PROPS="$PROPS -DCONFIG_HOME=$CONFIG_HOME" +JVM_MAX_HEAP=${MAX_HEAP:-1024} echo $CLASSPATH -exec java -Xms1024m -Xmx4096m -XX:PermSize=2024m $PROPS -classpath $CLASSPATH com.att.ajsc.runner.Runner context=// sslport=8081 +exec java -Xmx${JVM_MAX_HEAP}m $PROPS -classpath $CLASSPATH com.att.ajsc.runner.Runner context=// sslport=8081 -- cgit 1.2.3-korg