使用在這一點上的Grails Build.config 更改默認值:
grails.project.fork = [
// configure settings for compilation JVM, note that if you alter the Groovy version forked compilation is required
// compile: [maxMemory: 256, minMemory: 64, debug: false, maxPerm: 256, daemon:true],
// configure settings for the test-app JVM, uses the daemon by default
test: [maxMemory: 768, minMemory: 64, debug: true, maxPerm: 256, daemon:true],
// configure settings for the run-app JVM
run: [maxMemory: 500, minMemory: 64, debug: true, maxPerm: 256, forkReserve:false],
// configure settings for the run-war JVM
war: [maxMemory: 500, minMemory: 64, debug: true, maxPerm: 256, forkReserve:false],
// configure settings for the Console UI JVM
console: [maxMemory: 500, minMemory: 64, debug: true, maxPerm: 256]
]
如果以完全相同的方式指定JAVA_OPTS(CATALINA_OPTS僅用於「start」命令的JAVA_OPTS),則不需要設置CATALINA_OPTS。 – 2013-03-22 17:05:52
,你從命令行調用這個? – 2013-03-22 18:39:26
是從命令行。如果你不使用ubuntu,路徑/etc/init.d/tomcat6可能會有所不同。 – 2013-03-23 21:01:24