1回复
4年前
JVM 为什么会 Full GC ?
gc.log如下:
3.436: [GC 3.437: [DefNew: 104960K->2394K(118016K), 0.0199967 secs] 104960K->2394K(511232K), 0.0201419 secs]
4.976: [GC 4.976: [DefNew: 107354K->4851K(118016K), 0.0179419 secs] 107354K->4851K(511232K), 0.0180783 secs]
7.459: [GC 7.460: [DefNew: 109811K->12372K(118016K), 0.0422132 secs] 109811K->12372K(511232K), 0.0423621 secs]
9.448: [GC 9.448: [DefNew: 117332K->11481K(118016K), 0.0804884 secs] 117332K->20086K(511232K), 0.0806122 secs]
14.144: [GC 14.144: [DefNew: 116441K->13056K(118016K), 0.1247086 secs] 125046K->38138K(511232K), 0.1248527 secs]
16.166: [Full GC 16.167: [Tenured: 25082K->41982K(393216K), 0.3026969 secs] 95238K->41982K(511232K), [Perm : 32213K->32213K(65536K)], 0.3028631 secs]
19.816: [GC 19.816: [DefNew: 104960K->715K(118016K), 0.0049766 secs] 146942K->42697K(511232K), 0.0051054 secs]
ini配置文件如下:
--launcher.XXMaxPermSize
256m
-vmargs
-Xms128m
-Xmx512m
-Duser.language=en
-XX:PermSize=64M
-XX:MaxPermSize=256M
-XX:+PrintGCTimeStamps
-XX:+PrintGCDetails
-verbose:gc
-Xloggc:gc.log
-Xms512m
-XX:PermSize=64m
-XX:MaxPermSize=256m
-Xmn128m
请问为什么会full gc 呢?
3244 阅读