Skip to content

Commit 9331000

Browse files
committed
Container heap options
1 parent 9c5a767 commit 9331000

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
@@ -62,7 +62,10 @@ cp /operator/logstash.conf /logs/logstash.conf
6262
# assumption is that we have mounted a volume on /logs which is also visible to
6363
# the logstash container/pod.
6464

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

0 commit comments

Comments
 (0)