aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/bin/start.sh
diff options
context:
space:
mode:
authorabatos <adrian.batos-parac@amdocs.com>2017-06-09 09:14:33 -0400
committerabatos <adrian.batos-parac@amdocs.com>2017-06-09 09:14:44 -0400
commit895cd72a962de1868151288d4df1510db5280fab (patch)
tree8dff1eb1a64deeaa9172869c33dcbfc66d0096f3 /src/main/bin/start.sh
parent7abd2dbc84f713f56fba58a0d39500bc2c440813 (diff)
Configurable max heap size and PID fix
Change-Id: I9db736bd124b9ffba96a7aa307e82f1b1f74de30 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 ea3f8bd..efe866a 100644
--- a/src/main/bin/start.sh
+++ b/src/main/bin/start.sh
@@ -34,7 +34,8 @@ PROPS="$PROPS -DAJSC_SERVICE_NAMESPACE=search-data-service"
PROPS="$PROPS -DAJSC_SERVICE_VERSION=v1"
PROPS="$PROPS -Dserver.port=9509"
PROPS="$PROPS -DCONFIG_HOME=$CONFIG_HOME"
+JVM_MAX_HEAP=${MAX_HEAP:-1024}
echo $CLASSPATH
-java -Xms1024m -Xmx4096m -XX:PermSize=2024m $PROPS -classpath $CLASSPATH com.att.ajsc.runner.Runner context=// sslport=9509
+exec java -Xmx${JVM_MAX_HEAP}m $PROPS -classpath $CLASSPATH com.att.ajsc.runner.Runner context=// sslport=9509