PermGen space in Grails
Hi ,
To resolve the permgen space in grails.
1) Open the Command prompt
2) fire the below command on cmd prompt.
set JAVA_OPTS=-XX:MaxPermSize=128m -XX:PermSize=128m -Xms1024m -Xmx1024m -XX:-UseGCOverheadLimit
3) Go to the project directory and fire run-app.
Advertisement
Categories: Grails
Grails, Groovy, permgen space, PermGen space in Grails
nice Thought!
You have solved my permgen issue in grails
Did not work for me… I even put 1024m and it still crashing.
This ‘bug’ is making me so angry about grails development…
Can you please try to add “-server” parameter in the argument? Also if possible then send me the trace so that I will check the issue.
Thanks,
Amit
Thanks it worked for me as stated.
Increasing MaxPermSize will only delay the problem. In production, the solution is to never hot-redeploy the app. Instead, always restart the server.
In development, increasing MaxPermSize is a partial solution. You will be able to develop longer before having to restart the app server. You can turn on disable.auto.recompile, but that make development harder.