java.lang.OutOfMemoryError: PermGen space in tomcat with eclipse

前端 未结 3 1827
既然无缘
既然无缘 2020-12-13 06:01

i get this exception frequently when running my app on tomcat using eclipse:

java.lang.OutOfMemoryError: PermGen space
    at java.lang.ClassLoader.defineCla         


        
3条回答
  •  被撕碎了的回忆
    2020-12-13 06:28

    You can configure these arguments for eclipse:

    "To solve this I stopped the server in Eclipse. Double clicked on the server in the Servers tab to open the Overview page for the server. Clicked on Open Launch Configuration and then on the Arguments tab.

    I added the following VM arguments :

    -XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled
    

    ref to http://malcolmmallia.com/malcblog/?p=60

提交回复
热议问题