diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/bin/start.sh | 3 | ||||
-rw-r--r-- | src/main/docker/Dockerfile | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/main/bin/start.sh b/src/main/bin/start.sh index 59f4314..0e11779 100644 --- a/src/main/bin/start.sh +++ b/src/main/bin/start.sh @@ -73,7 +73,8 @@ PROPS="$PROPS -DAJSC_SERVICE_NAMESPACE=data-router" PROPS="$PROPS -DAJSC_SERVICE_VERSION=v1" PROPS="$PROPS -Dserver.port=9502" 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=9502 +exec java -Xmx${JVM_MAX_HEAP}m $PROPS -classpath $CLASSPATH com.att.ajsc.runner.Runner context=// sslport=9502 diff --git a/src/main/docker/Dockerfile b/src/main/docker/Dockerfile index f53850d..4019f5c 100644 --- a/src/main/docker/Dockerfile +++ b/src/main/docker/Dockerfile @@ -23,4 +23,4 @@ RUN ln -s /logs $MICRO_HOME/logs EXPOSE 9502 9502 -CMD /opt/app/data-router/bin/start.sh +CMD ["/opt/app/data-router/bin/start.sh"] |