欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

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

程序员文章站 2022-06-18 09:02:44
...
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外的都删除,重新打包就可以了
相关标签: grails war