使用 JDK 1.6.x G1(“垃圾优先")的经验 [英] Experience with JDK 1.6.x G1 ("Garbage First")
问题描述
我想知道在最新的 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屋!