Fixing the Eclipse PermGen Space

Fixing the Eclipse PermGen Space (Out of Memory) Error
When Using JDK 1.6.0_21

Eclipse has a very serious bug where it does not properly pass the memory limits from eclipse.ini to Java. As a result, Eclipse quickly runs out of memory and crashes with little warning and few obvious error messages. This bug applies only to jkd1.6.0_21 and later on Windows, but applies equally to Eclipse 3.6 (Helios), Eclipse 3.5 (Ganymade), and Eclipse 3.4 (Europa). To fix this, go to the Eclipse installation folder (e.g., C:\eclipse) and add the following to the bottom of eclipse.ini:

  -XX:MaxPermSize=256m

See the resultant file below. You can also download my patched eclipse.ini file.

Patched eclipse.ini
-startup
plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.0.v20100503
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256m
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m
-XX:MaxPermSize=256m

 

Note that 256M is the default memory setting for Eclipse. If you choose to increase it, change the -XX:MaxPermSize accordingly. For more details, please see http://wiki.eclipse.org/FAQ_How_do_I_increase_the_permgen_size_available_to_Eclipse%3F and https://bugs.eclipse.org/bugs/show_bug.cgi?id=319514.

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值