We currently are having performance issues with grails. It is taking about 10 seconds to load one of our main pages. I checked and saw that our grails app was starting up with 512 memory. We currently can use up to 3.5 gigs worth of ram.
I tried exporting the following:
export JAVA_OPTS=”-XX:MaxPermSize=1024m -Xmx1024M -server”
After checking how it started up it seems as if it still started with the 512m setting. Where is this set?
Csaba‘s answer is not accurate.
You don’t need to tweak the startGrails script. This is something dangerous since the next time you will upgrade Grails, you will lose your configuration. I am not even talking about an environment that should be the same among multiple developers!
The solution is quite simple :
GRAILS_OPTS="-XX:MaxPermSize=1024m -Xmx1024M -server"JAVA_OPTS