Setting JVM args for grails run-war « Intelligrape Groovy & Grails Blogs

Setting JVM args for grails run-war

Posted by

While working on my project using Grails 2.0.3, I was getting java.lang.OutOfMemoryError with grails run-war even when my JAVA_OPTS are set. Then while going through documentation and this thread i found how to set jvm args for grails run-war.

Just add this code in your BuildConfig.groovy and you are done.

 grails.tomcat.jvmArgs = ["-Xms256m", "-Xmx1024m"]

Cheers,
Ankur
ankur@intelligrape.com

This entry was posted on May 19th, 2012 at 1:45 pm and is filed under Grails . You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

2 Responses to “Setting JVM args for grails run-war”

Leave a Reply