1回复
5年前
出现Full GC频率一天一次,引起业务超时,麻烦大佬给下方向
2020-01-03T10:44:21.997+0800: 201006.738: [GC (Allocation Failure) 201006.740: [ParNew: 1767643K->25512K(1922432K), 0.0400192 secs] 4283022K->2541290K(5068160K), 0.0418843 secs] [Times: user=0.13 sys=0.01, real=0.05 secs]
2020-01-03T10:44:47.901+0800: 201032.641: [GC (Allocation Failure) 201032.643: [ParNew: 1773224K->27528K(1922432K), 0.0824060 secs] 4289002K->2543862K(5068160K), 0.0843016 secs] [Times: user=0.31 sys=0.01, real=0.09 secs]
2020-01-03T10:45:14.684+0800: 201059.424: [GC (Allocation Failure) 201059.425: [ParNew: 1775240K->20185K(1922432K), 0.0937992 secs] 4291574K->2536844K(5068160K), 0.0943308 secs] [Times: user=0.37 sys=0.00, real=0.10 secs]
2020-01-03T10:45:14.805+0800: 201059.546: [GC (CMS Initial Mark) [1 CMS-initial-mark: 2516658K(3145728K)] 2569090K(5068160K), 0.0392218 secs] [Times: user=0.05 sys=0.00, real=0.04 secs]
2020-01-03T10:45:14.845+0800: 201059.585: [CMS-concurrent-mark-start]
2020-01-03T10:45:15.147+0800: 201059.887: [CMS-concurrent-mark: 0.302/0.302 secs] [Times: user=0.35 sys=0.01, real=0.31 secs]
2020-01-03T10:45:15.147+0800: 201059.888: [CMS-concurrent-preclean-start]
2020-01-03T10:45:15.170+0800: 201059.910: [CMS-concurrent-preclean: 0.023/0.023 secs] [Times: user=0.01 sys=0.00, real=0.02 secs]
2020-01-03T10:45:15.170+0800: 201059.910: [CMS-concurrent-abortable-preclean-start]
CMS: abort preclean due to time 2020-01-03T10:45:20.226+0800: 201064.967: [CMS-concurrent-abortable-preclean: 5.054/5.056 secs] [Times: user=6.43 sys=0.21, real=5.05 secs]
2020-01-03T10:45:20.229+0800: 201064.969: [GC (CMS Final Remark) [YG occupancy: 418274 K (1922432 K)]201064.970: [Rescan (parallel) , 0.1156058 secs]201065.085: [weak refs processing, 1.3231344 secs]201066.408: [class unloading, 0.1590574 secs]201066.568: [scrub symbol table, 0.0925599 secs]201066.660: [scrub string table, 0.0018328 secs][1 CMS-remark: 2516658K(3145728K)] 2934933K(5068160K), 1.7227110 secs] [Times: user=1.96 sys=0.00, real=1.72 secs]
2020-01-03T10:45:21.952+0800: 201066.693: [CMS-concurrent-sweep-start]
2020-01-03T10:45:23.736+0800: 201068.477: [CMS-concurrent-sweep: 1.625/1.784 secs] [Times: user=2.94 sys=0.25, real=1.78 secs]
2020-01-03T10:45:23.736+0800: 201068.477: [CMS-concurrent-reset-start]
2020-01-03T10:45:23.743+0800: 201068.484: [CMS-concurrent-reset: 0.007/0.007 secs] [Times: user=0.01 sys=0.00, real=0.01 secs]
gc日志如上所示~
jvm参数为:
-XX:+UseCompressedOops
-Xms5g -Xmx5g
-XX:PermSize=256M -XX:MaxPermSize=1024m
-XX:NewSize=3g -XX:MaxNewSize=3g
-XX:+UseCMSInitiatingOccupancyOnly -XX:+PerfDataSaveToFile -XX:SurvivorRatio=10 -Xloggc:/data/dataLogs/gc/gc.log -verbose:gc -XX:+PrintGCDateStamps -XX:+PrintGCDetails -XX:+UseConcMarkSweepGC -XX:+UseCMSCompactAtFullCollection -XX:+CMSClassUnloadingEnabled -XX:+DisableExplicitGC -XX:CMSInitiatingOccupancyFraction=80 -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/data/dataLogs/dump -XX:ParallelGCThreads=3
4790 阅读