-server
##JVM configuration

Heap size

-Xms2896m #根据需要自定义;
-Xmx2896m #根据需要自定义;

-XX:NewRatio=1

GC configuration

-XX:+UseParNewGC
-XX:+UseConcMarkSweepGC
-XX:+UseCMSInitiatingOccupancyOnly
-XX:CMSInitiatingOccupancyFraction=80
-XX:+PrintGCDetails
-XX:+PrintGCDateStamps
-XX:+PrintTenuringDistribution
-XX:+PrintGCApplicationStoppedTime
-XX:+UseGCLogEileRotation
-XX:+PretenureSizeThreshold=3145728
-XX:NumberOfGCLogFiles=32
-XX:GCLogFileSize=64m
-Xloggc:/applog/gc/gc.log

optimizations

-XX:+UnlockExperimentaIVMOptions
-XX:+UseCGroupMemoryLimitForHeap
-XX:+AlwaysPreTouch
-Djava.awt.headless=true

heap dumps

-XX:+HeapDumponOutorMemoryError
-XX:HeapDumpPath=/heapdump

Logo

K8S/Kubernetes社区为您提供最前沿的新闻资讯和知识内容

更多推荐