Avoid Permgen Space error when running Tomcat from Eclipse

前端 未结 2 1913
渐次进展
渐次进展 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:40

    The configuration in eclipse.ini is only for the JVM that actually runs Eclipse.

    Tomcat is run in its own JVM instance, so you'll need that separately.

    Assuming you use WTP to start your Tomcat instance, you need to go to your Server configuration, click "Open launch configuration" and there (on the "Arguments" tab) edit/add the VM arguments to include the desired -XX:MaxPermSize argument.

提交回复
热议问题