1回复
4年前
微服务应用启动猴出现多次full gc
镜像为
openjdk8;
jvm参数为:
-Xms2688m
-Xmx2688m
-Xloggc:/**/gc.log
-XX:NewSize=900m
-XX:MaxNewSize=900m
-XX:+UseConcMarkSweepGC
-XX:CMSFullGCsBeforeCompaction=5
-XX:+UseCMSCompactAtFullCollection
-XX:+CMSParallelRemarkEnabled
-XX:+CMSPermGenSweepingEnabled
-XX:+CMSClassUnloadingEnabled
-XX:+HeapDumpOnOutOfMemoryError
-XX:+PrintGCDetails
-XX:+PrintGCDateStamps
-verbose:gc
-XX:+PrintClassHistogramBeforeFullGC
-XX:+PrintClassHistogramAfterFullGC
-XX:+PrintCommandLineFlags
-XX:+PrintGCApplicationConcurrentTime
-XX:+PrintGCApplicationStoppedTime
-XX:+PrintTenuringDistribution
-XX:+PrintHeapAtGC
-XX:+UseCMSInitiatingOccupancyOnly
-XX:CMSInitiatingOccupancyFraction=70
-XX:+DisableExplicitGC
-XX:+UseCompressedOops
-XX:+DoEscapeAnalysis
-XX:MaxTenuringThreshold=10
现象:
在启动成功后通过jstat查询,多次发现都有4次fullgc,如图所示:
因为应用能成功部署,并正常访问等情况,可以判断发现堆内存等分配都是比较正常,并且gc日志并未找到相关的fullgc日志。
3387 阅读