Eclipse servers中debug启动tomcat 启动内存不够报错解决
解决办法:
点击Debug configurations ->右侧Arguments标签栏 -> VM arguments
-Dcatalina.base="D:\workstudio\.metadata\.plugins\org.eclipse.wst.server.core\tmp1" -Dcatalina.home="C:\Users\uatyl14991\Documents\dev\apache-tomcat-7.0.78-windows-x86" -Dwtp.deploy="D:\workstudio\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps" -Djava.endorsed.dirs="C:\Users\uatyl14991\Documents\dev\apache-tomcat-7.0.78-windows-x86\endorsed" -server -XX:PermSize=1024M -XX:MaxPermSize=1024m |
其中,黑色字体为eclipse固定生成,蓝色字体视自己机器内存大小设置