【问题标题】:Increase memory allocated to jdk增加分配给jdk的内存
【发布时间】:2011-02-05 11:10:44
【问题描述】:

我的eclipse指向一个jdk。我正在使用 GWT。有时我的 Eclipse 会因以下错误而崩溃,有人可以帮忙

Xmx2000m 时出现新错误

这些是错误日志的最后几行

!ENTRY org.eclipse.ui 4 4 2011-02-05 05:56:06.306
!MESSAGE Plug-in 'org.eclipse.papyrus.diagram.common' contributed an invalid Menu Extension (Path: 'diagramMenu/filtersMenu' is invalid): org.eclipse.papyrus.diagram.common.myShowHideCompartmentAction

!ENTRY org.eclipse.ui 4 4 2011-02-05 05:56:06.331
!MESSAGE Plug-in 'org.eclipse.papyrus.diagram.common' contributed an invalid Menu Extension (Path: 'diagramMenu/filtersMenu' is invalid): org.eclipse.papyrus.diagram.common.myShowHideContentsAction
!SESSION 2011-02-05 05:57:13.577 -----------------------------------------------
eclipse.buildId=M20100909-0800
java.version=1.6.0_23-ea
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments:  -product -XX:+AggressiveHeap org.eclipse.epp.package.modeling.product
Command-line arguments:  -os win32 -ws win32 -arch x86 -product -XX:+AggressiveHeap org.eclipse.epp.package.modeling.product

!ENTRY org.eclipse.core.resources 2 10035 2011-02-05 05:57:16.411
!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.

!ENTRY org.eclipse.ui 4 4 2011-02-05 05:57:24.076
!MESSAGE Plug-in 'org.eclipse.papyrus.diagram.common' contributed an invalid Menu Extension (Path: 'diagramMenu/filtersMenu' is invalid): org.eclipse.papyrus.diagram.common.myShowHideCompartmentAction

!ENTRY org.eclipse.ui 4 4 2011-02-05 05:57:24.098
!MESSAGE Plug-in 'org.eclipse.papyrus.diagram.common' contributed an invalid Menu Extension (Path: 'diagramMenu/filtersMenu' is invalid): org.eclipse.papyrus.diagram.common.myShowHideContentsAction

【问题讨论】:

  • 你怎么知道这个错误和内存有关?
  • 我只是在猜测,因为我的网络应用程序中的所有文件都正常,它们可以运行!!
  • 是否有任何内容写入 Eclipse 错误日志?
  • 当我收到这个错误时,整个 eclipse 都崩溃了,甚至 eclipse 退出了

标签: java memory-leaks crash-reports jvm-crash


【解决方案1】:

我认为这与记忆无关。你用的是什么eclipse版本?这听起来像是以前 Eclipse 版本的错误:https://bugs.eclipse.org/bugs/show_bug.cgi?id=324491

【讨论】:

    【解决方案2】:

    eclipse 的内存设置在 eclipse.ini 中。将您的设置从 -Xmx1000m 增加到即 -Xmx2000m。

    【讨论】:

    • 我已更新问题,添加 -Xmx2000m 时出现新错误。
    【解决方案3】:

    试试http://java.sun.com/docs/hotspot/gc1.4.2/#4.2.2.%20AggressiveHeap|outline

    选项 -XX:+AggressiveHeap 让虚拟机动态分配更多内存。

    【讨论】:

    • 也许选项 -XX:MaxPermSize=600m 会产生后面的退出代码 -1。您可以尝试省略它并使用积极的选项运行。但我不知道你的退出代码 -2147483610 是什么意思。也许你应该在 eclipse 论坛上提问。
    猜你喜欢
    • 2012-07-18
    • 1970-01-01
    • 2011-02-26
    • 1970-01-01
    • 2014-11-13
    • 2012-01-24
    • 2016-01-09
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多