【问题标题】:Groovy Grails Tool Suite too small heap size, but only on DebugGroovy Grails Tool Suite 堆大小太小,但仅在 Debug 上
【发布时间】:2015-06-23 21:23:37
【问题描述】:

在 Windows 7 Home 64 位上运行 Groovy Grails Tool Suite (GGTS) 版本 3.6.4(最新为 2015 年 6 月)时,我收到“VM 初始化期间发生错误,对于指定的新大小而言初始堆太小”。我有一个“-Xms512m -Xmx512m”的 JAVA_OPTS 系统环境变量我在 GGTS 菜单中也有相同的值:运行 => 调试配置...参数选项卡,VM 参数。当我在 GGTS 中运行应用程序并且应用程序成功启动时,不会发生此错误。但是,当我尝试使用 Debug 和 run-app Debug Configuration 运行时,我确实收到了这个错误。我还能在哪里设置堆值以使其在 Debug 中工作?关于测试、修复或设置什么来解决此问题的任何想法?

【问题讨论】:

  • GGTS.exe 的大部分 GGTS.ini 文件 ... --launcher.library plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20150204-1316 -产品 org.springsource.ggts.ide --launcher.defaultAction openFile --launcher.XXMaxPermSize=512m -vmargs -Dgrails.console.enable.interactive=false -Dgrails.console.enable.terminal=false -Djline.terminal=jline。 UnsupportedTerminal -Dgrails.console.class=grails.build.logging.GrailsEclipseConsole -Dosgi.requiredJavaVersion=1.6 -Xms512m -Xmx1024m -XX:MaxPermSize=1024m -Dorg.eclipse.swt.browser.IEVersion=10001

标签: java grails groovy


【解决方案1】:

无法让 GGTS 启动我的应用程序,无论我对 -Xms 和 -Xmx 进行了哪些更改,我都能找到进行更改的任何地方。不断收到同样的错误。最后,我偶然发现了这种设置调试的方法。第 1 步,从控制台(不在 GGTS 中)启动应用程序:

grails -debug run-app

第 2 步,在 GGTS 中按照以下说明连接到您刚刚启动的“grails -debug run-app”(使用端口 5005 - 如控制台窗口中所示),完成后,单击 Debug 按钮底部:Create a Remote Java Application launch

现在,调试启动,我可以在 GGTS 中设置和查看断点。

【讨论】:

    猜你喜欢
    • 2015-05-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多