Configurable max heap size and PID fix 29/4929/1
authorabatos <adrian.batos-parac@amdocs.com>
Fri, 9 Jun 2017 13:14:33 +0000 (09:14 -0400)
committerabatos <adrian.batos-parac@amdocs.com>
Fri, 9 Jun 2017 13:14:44 +0000 (09:14 -0400)
Change-Id: I9db736bd124b9ffba96a7aa307e82f1b1f74de30
Signed-off-by: abatos <adrian.batos-parac@amdocs.com>
.gitignore [new file with mode: 0644]
src/main/bin/start.sh
src/main/docker/Dockerfile

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..a33cfa5
--- /dev/null
@@ -0,0 +1,4 @@
+/target/
+/bin/
+.project
+.settings/
\ No newline at end of file
index ea3f8bd..efe866a 100644 (file)
@@ -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
index 6182c35..3198bb1 100644 (file)
@@ -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"]