Reading for ParNew (promotion failed) and (concurrent mode failure)

http://java-monitor.com/forum/showthread.php?t=645

Dear All,

If you are struggling to understand the messages ParNew (promotion failed) and (concurrent mode failure), you might want to bone up on memory management and garbage collector internals.

ParNew (promotion failed): This means that your old generation has become fragmented and the data from Eden might not fit into a large enough contiguous chunk in old.

https://java.sun.com/j2se/reference/...whitepaper.pdf
http://blogs.sun.com/jonthecollector...the_sum_of_the

(concurrent mode failure): The GC predicts that the CMS collection will not complete in time before the Old generation becomes full. It aborts the run and does a stop-the-world instead.

http://blogs.sun.com/jonthecollector...t_the_heck_s_a

Kees Jan


Dear All,

Oh, and how to resolve these? Well, you have to experiment. Each option has downsides and may or may not make them unusable for your situation. Sorry, but there is no clear-cut answer.

ParNew (promotion failed): reduce Eden size, increase heap size.

(concurrent mode failure): make the GC kick in sooner with -XX:+CMSIncrementalMode and/or setting -XX:CMSInitiatingOccupancyFraction to lower than the default value.

Here is documentation on the JVM switches: http://blogs.sun.com/watt/resource/j...ions-list.html

Kees Jan

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值