From 506f61e6530f5efab132209499a2e3bb2db4a8df Mon Sep 17 00:00:00 2001 From: James Roper Date: Thu, 6 Jun 2019 11:59:25 +1000 Subject: [PATCH] Limit heap usage to 128mb --- kubernetes/akka-cluster-deployment.yml | 2 ++ pom.xml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/kubernetes/akka-cluster-deployment.yml b/kubernetes/akka-cluster-deployment.yml index 4f1f560..59dacf3 100644 --- a/kubernetes/akka-cluster-deployment.yml +++ b/kubernetes/akka-cluster-deployment.yml @@ -43,6 +43,8 @@ spec: containerPort: 8558 protocol: TCP env: + - name: JAVA_OPTS + value: "-Xmx128m -Xms128m" - name: NAMESPACE valueFrom: fieldRef: diff --git a/pom.xml b/pom.xml index 147ca50..fd12620 100644 --- a/pom.xml +++ b/pom.xml @@ -211,7 +211,7 @@ /bin/sh -c - java -jar /maven/akka-cluster-openshift.jar + java $JAVA_OPTS -jar /maven/akka-cluster-openshift.jar