0

你能解释一下这个日志吗?

142.678: [Full GC 142.678: [CMS142.764: [CMS-concurrent-mark: 0.088/0.088 secs] [Times: user=0.09 sys=0.00, real=0.09 secs] 
     (concurrent mode failure): 21888K->19536K(21888K), 0.2969878 secs] 31679K->23701K(31680K), [CMS Perm : 1489K->1489K(12288K)], 0.2972058 secs] [Times: user=0.30 sys=0.00, real=0.30 secs] 
4

2 回答 2

1

new generation的填得太快了,在填满之前,并发收集tenured generation无法完成new generation

尝试增加new generation.

更详细的解释,看这里

于 2012-05-30T07:21:03.477 回答
1

First, you are using CMS garbage collector (find more about it at Understanding pauses of CMS collector

(concurrent mode failure) means that background garbage collector cannot reclaim memory fast enough (young collection have failed to find some free space in tenured generation to promote objects) and JVM have switched to stop-the-world FullGC.

Possible reason for that - heap is too small - young generation is too small and a lot of young objects are leaking tenured space.

于 2012-05-31T07:42:56.457 回答