使用JDK 1.6.x G1的经验(“垃圾优先”) [英] Experience with JDK 1.6.x G1 ("Garbage First")
本文介绍了使用JDK 1.6.x G1的经验(“垃圾优先”)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想知道最新的JDK中的G1垃圾回收器有什么经验?我看到> NullPointerException
在我的程序中抛出,尽管代码在先前的JDK中没有改变并且行为正确。
I'd like to know what are the experiences with G1 garbage collector in newest JDK? I see NullPointerException
thrown in my program, although code didn't change and behave correctly in earlier JDKs.
推荐答案
我一直在使用jEdit运行:
I've been running jEdit using:
-Xmx192M -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC
最近几天在windows上。没有遇到任何问题或错误行为。
for the last couple of days on windows. Haven't experienced anything going wrong or misbehaving.
我也尝试使用G1 GC来运行Intellij,但这并不公平。它持续了几个小时,然后在一大堆混乱中崩溃,也许有点乐观。
I also tried running Intellij using the G1 GC, it didn't fair so well. It lasted a couple of hours before crashing in a big pile of mess, a bit optimistic maybe.
这篇关于使用JDK 1.6.x G1的经验(“垃圾优先”)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文