开发者

Intellij / Grails development what to set to avoid PermGen errors?

i am using IntelliJ to develop Grails application but as our application grows i am hitting the Permgen errors when using the Tomcat plugin. I have tried several combination in 开发者_运维百科settings permgen size but they seem not to have any effect.

Any solution in dealing with these Permgen errors?


In the Run menu, select Edit Configurations, choose the configuration that executes run-app for your Grails app, then enter a value for permgen as shown in red below.

Intellij / Grails development what to set to avoid PermGen errors?


Do you mean that you get perm gen errors after redeploying several times?

If yes, this is a flaw with Tomcat itself. The only way to fix it is to shut down Tomcat, restart it to empty out perm gen, and try again.

Grails itself contributes to the problem by using reflection to help enforce "convention over coding." Reflection uses perm gen to do its work. Hibernate can contribute as well; see

http://www.jroller.com/agileanswers/entry/preventing_java_s_java_lang

If you attach VisualVM 1.3.2 to the Tomcat process you'll be able to see all of memory, threads, etc. Maybe that'll help you understand better if something else is happening.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜