【问题标题】:To what size should i increase the size to avoid perm gen error?我应该将大小增加到多大以避免烫发错误?
【发布时间】:2012-05-29 04:52:03
【问题描述】:

在为 Eclipse 安装谷歌应用引擎时,我得到了perm gen error。我读到您需要从 eclipse 打包的配置或 ini 文件中为 eclipse 增加 perm gen 的大小。目前它看起来像这样:

-startup
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.100.v20110502
-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

我需要在多少个地方进行编辑?我需要在哪里添加? 256 M 是指 MB 吗?我应该增加多大的尺寸?

【问题讨论】:

    标签: java eclipse google-app-engine size permgen


    【解决方案1】:

    需要在ini文件末尾加一个:

    -XX:MaxPermSize=256m
    

    继续增大,直到问题消失 - 先尝试 128M,看看效果如何。

    是的,256M 的意思是“256 兆字节”。您也可以使用G 来表示千兆字节。

    【讨论】:

    • 实际上 --launcher.XXMaxPermSize 256m 分配 PermSize.. 如果它导致问题将其增加到 348m 并测试它。
    • @Ravi 这是针对启动器的,而不是针对 IDE 的。 “启动器”VM 设置适用于由 IDE 启动的 JVM,例如当您运行单元测试或 main() 等时。IDE 本身有自己不同(通常更大)的 VM 设置'没有--launcher. 前缀,就像 OP 发布的文件内容中的最后一个前缀
    猜你喜欢
    • 2011-01-03
    • 1970-01-01
    • 1970-01-01
    • 2010-10-28
    • 2019-03-11
    • 2018-09-14
    • 1970-01-01
    • 1970-01-01
    • 2013-03-09
    相关资源
    最近更新 更多