aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/bin/start.sh3
-rw-r--r--src/main/docker/Dockerfile2
2 files changed, 3 insertions, 2 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
diff --git a/src/main/docker/Dockerfile b/src/main/docker/Dockerfile
index 6182c35..3198bb1 100644
--- a/src/main/docker/Dockerfile
+++ b/src/main/docker/Dockerfile
@@ -23,4 +23,4 @@ RUN ln -s /logs $MICRO_HOME/logs
EXPOSE 9509 9509
-CMD /opt/app/search-data-service/bin/start.sh
+CMD ["/opt/app/search-data-service/bin/start.sh"]