一份上K8s应用调优的JVM记录
下载:https://github.com/etcd-io/etcd/releases/tag/下载amd安装包:etcd-v3.x-linux-amd64.tar.gz1.2 集群部署https://etcd.io/docs/v3.4/op-guide/clustering/修改三台服务器的hosts:192.168.0.208k8s-01192.168.0.53k8s-02192.168.0.
-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
更多推荐
所有评论(0)