eclipse下java.lang.OutOfMemoryError: PermGen space解决方法

来源:互联网 发布:网络大学考试平台答案 编辑:程序博客网 时间:2024/06/15 12:22

Eclipse 中修改tomcat设置内存大小

修改1:

   在Eclipse中下面Servers双击Tomcat Server... 然后点击General InformAtion 下的Open launch configuration;

会弹出Edit Configuration,然后在选中Arguments选项卡;在VM arguments文本框中最后面添加

-Xms256m -Xmx1024m -XX:MaxPermSize=256m (时间可以自己设定)。

修改2:

   在Eclipse菜单栏中Window ——》Preferences ——》Server ———》 Runtime Environment;

选择您用的Tomcat 然后点击Edit...弹出Edit Server Runtime Ecvironment 下面JRE选项后面的Installed JREs...

点击弹出Installed JREs;在选中您用的Jre在点击Edit..在Defaul VM Arguments:中填入-Xms256m -Xmx512m

时间可以自己设定。

最好两个地方都修改,希望能够帮助到您。

0 0