summaryrefslogtreecommitdiffstats
path: root/src/main/bin/start.sh
diff options
context:
space:
mode:
authorabatos <adrian.batos-parac@amdocs.com>2017-06-09 09:36:30 -0400
committerabatos <adrian.batos-parac@amdocs.com>2017-06-09 10:11:54 -0400
commit0cecd0baa3cbc3f870670911d27db2fae8feac83 (patch)
tree504e5b26cd38fb61dc953c94182c7667b6b058ec /src/main/bin/start.sh
parent9d2e5833689f56f38b21b67818530d23c503fcbb (diff)
Configurable max heap size and PID fix
Change-Id: I6e4ae9fd1c3e64e0d470c044ade0387045123f60 Signed-off-by: abatos <adrian.batos-parac@amdocs.com>
Diffstat (limited to 'src/main/bin/start.sh')
-rw-r--r--src/main/bin/start.sh3
1 files changed, 2 insertions, 1 deletions
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