PermGen problems with Lift and Jetty

后端 未结 5 1625
死守一世寂寞
死守一世寂寞 2020-12-23 02:33

I\'m developing on the standard Lift platform (maven and jetty). I\'m repeatedly (once every couple of days) getting this:

Exception in thread \"7048009@qtp-         


        
5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-23 03:08

    If you see this when running mvn jetty:run, set the MAVEN_OPTS.

    For Linux:

    export MAVEN_OPTS="-XX:+CMSClassUnloadingEnabled -XX:PermSize=256M -XX:MaxPermSize=512M"
    mvn jetty:run
    

    For Windows:

    set "MAVEN_OPTS=-XX:+CMSClassUnloadingEnabled -XX:PermSize=256M -XX:MaxPermSize=512M"
    mvn jetty:run
    

    Should be fine now. If not, increase -XX:MaxPermSize.

    You can also put these permanently to your environment.

    • For Linux, append the export line to ~/.bashrc

    • For Windows, press Win-key + PrintScreen, and go Advanced > Environment. See also http://support.microsoft.com/kb/310519.

提交回复
热议问题