Skip to content

Commit 1c317b7

Browse files
committed
Container heap options
1 parent 76c37ad commit 1c317b7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/scripts/operator.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,10 @@ cp /operator/logstash.conf /logs/logstash.conf
6464
# assumption is that we have mounted a volume on /logs which is also visible to
6565
# the logstash container/pod.
6666

67+
# Container memory optimizaton flags
68+
HEAP="-XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -XX:MaxRAMFraction=1 -XshowSettings:vm"
69+
6770
# Start operator
68-
java $MOCKING_WLS $DEBUG $LOGGING -jar /operator/weblogic-kubernetes-operator.jar &
71+
java $HEAP $MOCKING_WLS $DEBUG $LOGGING -jar /operator/weblogic-kubernetes-operator.jar &
6972
PID=$!
7073
wait $PID

0 commit comments

Comments
 (0)