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

本文解释了 Java 中 ParNew (promotion failed) 和 (concurrent mode failure) 的原因及解决方法。ParNew (promotion failed) 表明老年代碎片化严重,导致 Eden 区的数据无法放入老年代连续的空间中。而 (concurrent mode failure) 则是因为 GC 预测 CMS 收集无法在老年代填满之前完成,从而触发了全局暂停。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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、付费专栏及课程。

余额充值