PermGen problems with Lift and Jetty

后端 未结 5 1623
死守一世寂寞
死守一世寂寞 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:18

    The mailing list (http://groups.google.com/group/liftweb/) is the official support forum for Lift, and where you'll be able to get a better answer. I don't know the particulars of your dev setup (you don't go into much detail), but I assume you're reloading your war in Jetty without actually restarting it. Lift doesn't perform dynamic class generation (as suggested by VonC above), but Scala compiles each closure as a separate class. If you're adding and removing closures to your code over the course of several days, it's possible that too many classes are being loaded and never unloaded and taking up perm space. I'd suggest you enable the options JVM options mentioned by VonC above and see if they help.

提交回复
热议问题