性能问答>这个full gc是不是程序调用了system.gc导致的?>
4回复

这个full gc是不是程序调用了system.gc导致的?



{Heap before GC invocations=2985 (full 1457):
PSYoungGen total 1348096K, used 1088K [0x0000000719580000, 0x000000076ca80000, 0x00000007c0000000)
eden space 1331200K, 0% used [0x0000000719580000,0x0000000719580000,0x000000076a980000)
from space 16896K, 6% used [0x000000076ba00000,0x000000076bb10040,0x000000076ca80000)
to space 16896K, 0% used [0x000000076a980000,0x000000076a980000,0x000000076ba00000)
ParOldGen total 2731008K, used 108444K [0x00000005cc000000, 0x0000000672b00000, 0x0000000719580000)
object space 2731008K, 3% used [0x00000005cc000000,0x00000005d29e72d0,0x0000000672b00000)
Metaspace used 165764K, capacity 168009K, committed 169600K, reserved 1200128K
class space used 17688K, capacity 18068K, committed 18304K, reserved 1048576K
2021-09-13T09:44:59.311+0800: 157872.090: [Full GC (System.gc()) [PSYoungGen: 1088K->0K(1348096K)] [ParOldGen: 108444K->104070K(2731008K)] 109532K->104070K(4079104K), [Metaspace: 165764K->165764K(1200128K)], 0.3549360 secs] [Times: user=3.15 sys=0.01, real=0.35 secs]
Heap after GC invocations=2985 (full 1457):
PSYoungGen total 1348096K, used 0K [0x0000000719580000, 0x000000076ca80000, 0x00000007c0000000)
eden space 1331200K, 0% used [0x0000000719580000,0x0000000719580000,0x000000076a980000)
from space 16896K, 0% used [0x000000076ba00000,0x000000076ba00000,0x000000076ca80000)
to space 16896K, 0% used [0x000000076a980000,0x000000076a980000,0x000000076ba00000)
ParOldGen total 2731008K, used 104070K [0x00000005cc000000, 0x0000000672b00000, 0x0000000719580000)
object space 2731008K, 3% used [0x00000005cc000000,0x00000005d25a19c0,0x0000000672b00000)
Metaspace used 165764K, capacity 168009K, committed 169600K, reserved 1200128K
class space used 17688K, capacity 18068K, committed 18304K, reserved 1048576K
}

各位大佬,通过上面的gc信息看 full gc了,但new区,old区都没满,这种是不是程序调用了system.gc了,不知分析的对不?

1215 阅读
请先登录,查看4条精彩评论吧
快去登录吧,你将获得
  • 浏览更多精彩评论
  • 和开发者讨论交流,共同进步