aboutsummaryrefslogtreecommitdiffstats
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
parent7abd2dbc84f713f56fba58a0d39500bc2c440813 (diff)
Configurable max heap size and PID fix
Change-Id: I9db736bd124b9ffba96a7aa307e82f1b1f74de30 Signed-off-by: abatos <adrian.batos-parac@amdocs.com>
-rw-r--r--.gitignore4
-rw-r--r--src/main/bin/start.sh3
-rw-r--r--src/main/docker/Dockerfile2
3 files changed, 7 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..a33cfa5
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+/target/
+/bin/
+.project
+.settings/ \ No newline at end of file
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"]