运行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外的都删除,重新打包就可以了