简体   繁体   English

Grails Run-app内存不足错误

[英]grails run-app out of memory error

Hi I am trying to do grails run-app and I get this error during compilation 嗨,我尝试做grails run-app,在编译过程中出现此错误

  [groovyc] The system is out of resources.
  [groovyc] Consult the following stack trace for details.
  [groovyc] java.lang.OutOfMemoryError: GC overhead limit exceeded

and then a bunch of stack trace I have java_opts set as: 然后我将java_opts设置为一堆堆栈跟踪:

set JAVA_OPTS="-Xmx4096m -XX:MaxPermSize=1024m -XX:MaxGCPauseMillis=10 -Dstringchararrayaccessor.disabled=true" 设置JAVA_OPTS =“-Xmx4096m -XX:MaxPermSize = 1024m -XX:MaxGCPauseMillis = 10 -Dstringchararrayaccessor.disabled = true”

but still got the error then I unset this and set grails_opts with similar options 但仍然出现错误,然后我取消设置此设置并使用类似的选项设置grails_opts

GRAILS_OPTS="-XX:MaxPermSize=1024m -Xmx4096M -server" GRAILS_OPTS =“-XX:MaxPermSize = 1024m -Xmx4096M -server”

still getting the error. 仍然出现错误。 What is the setting to be done? 要做什么设置? I have 8 GB of total RAM in the system. 我的系统中有8 GB的总RAM。 Update: Once I set these variable I get an error from grails saying that 更新:一旦设置了这些变量,我就会从grails中得到一个错误,说

"-XX:MaxPermsize=1024M" was unexpected at this time. 此时“ -XX:MaxPermsize = 1024M”是意外的。

您需要从命令中删除“。IE:

set GRAILS_OPTS=-XX:MaxPermSize=1024m -Xmx4096M -server

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM