Troubleshooting Grails/Groovy memory leaks?

后端 未结 7 1279
难免孤独
难免孤独 2020-12-08 01:41

I\'ve got a Grails application that does a fairly decent amount of domain object creation and destruction, and it seems to run out of PermGen space at a very, very rapid rat

7条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-08 01:54

    Have you tried

    -XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled
    

    ?

    Together with increasing the usual suspects (-Xmx, -Xms, -XX:PermSize and -XX:MaxPermSize) this resolved all the PermGen issues on our production Tomcat, which had occured pretty soon after deploying the app. Never seen another OOM-Exception after that. :-)

提交回复
热议问题