`
海之恋鱼
  • 浏览: 15411 次
  • 来自: 北京
社区版块
存档分类
最新评论

8、grails 打war报错 Error Error executing script War: GC overhead limit exceeded

阅读更多
grails版本:2.4.3

运行grails war包:
报:Error Error executing script War: GC overhead limit exceeded (Use --stacktrace to see the full trace)

原因如下:
1、内存不足,需要修改conf/BuildConfig,找到grails.project.fork
修改war
war: [maxMemory: 768, minMemory: 64, debug: false, maxPerm: 256, forkReserve:false],
修改为war: [maxMemory: 2048, minMemory: 512, debug: false, maxPerm: 1024, forkReserve:false],
根据实际情况来设置

2、程序原因,例如:我的是不能compessing application,是application.js的问题,就去找application.js,发现
//= require jquery
//= require_tree .
//= require_self
//= require bootstrap

我的程序里面,没有 jquery _tree .bootstrap,将除require_self外的都删除,重新打包就可以了
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics