grails版本:2.4.3
运行grails war包:
报:[color=darkred]Error Error executing script War: GC overhead limit exceeded (Use --stacktrace to see the full trace)[/color]
原因如下:
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,发现
我的程序里面,没有 jquery _tree .bootstrap,将除require_self外的都删除,重新打包就可以了
运行grails war包:
报:[color=darkred]Error Error executing script War: GC overhead limit exceeded (Use --stacktrace to see the full trace)[/color]
原因如下:
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 2.4.3版本时,部署WAR包出现GC overhead limit exceeded错误的原因及解决方法。一方面需要调整内存配置,另一方面要检查程序中可能存在的问题。

被折叠的 条评论
为什么被折叠?



