增加JVM堆内存设置

This commit is contained in:
万宸舜
2021-04-22 14:18:33 +08:00
parent 39c387dbed
commit 17b964fef0

View File

@ -84,6 +84,14 @@ spec:
valueFrom: valueFrom:
fieldRef: fieldRef:
fieldPath: status.podIP fieldPath: status.podIP
- name: JAVA_TOOL_OPTIONS
value:
-XX:+UnlockExperimentalVMOptions
-XX:+UseContainerSupport
-XX:+UseCGroupMemoryLimitForHeap
-XX:InitialRAMPercentage=40.0
-XX:MinRAMPercentage=20.0
-XX:MaxRAMPercentage=80.0
--- ---
kind: Service kind: Service
apiVersion: v1 apiVersion: v1