Avoid Permgen Space error when running Tomcat from Eclipse

前端 未结 2 1917
渐次进展
渐次进展 2021-02-19 19:10

What is the best way to avoid permgen space error when running Tomcat from Eclipse 3.6? Is this done by adding the following line:



        
2条回答
  •  孤独总比滥情好
    2021-02-19 19:53

    No. Tomcat runs in a separate JVM from eclipse. Add this option in the VM arguments of the launch configuration :

    • double-click on the Tomcat server in the Servers view
    • click on the link "Open launch configuration"
    • switch to the Arguments tab
    • add -XX:MaxPermSize=512m in the VM arguments text area

提交回复
热议问题