本文共 724 字,大约阅读时间需要 2 分钟。
在一次搭建项目时,遇到这样的错误,导致了项目死活都不能够正常运行,真是捉急,最后 抓狂解决了这个问题。
1.在eclipse安装目录中将eclipse的启动参数调大一些
如:
-vmD:/Program Files (x86)/JDK/jdk1.7(64)/bin/javaw.exe-startupplugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar--launcher.libraryplugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.300.v20150602-1417-productorg.eclipse.epp.package.jee.product--launcher.defaultActionopenFile--launcher.XXMaxPermSize512M-showsplashorg.eclipse.platform--launcher.XXMaxPermSize512m--launcher.defaultActionopenFile--launcher.appendVmargs-vmargs-Dosgi.requiredJavaVersion=1.7-Xms128m-Xmx1024m2.然后
然后在eclipse的server栏,找到tomcat选项,打开tomcat的配置
在arguments 标签框下面的VM Arguments 框后面接上自己的tomcat启动虚拟机参数就可以了
-Xms128m -Xmx1024m -XX:MaxPermSize=512m
转载地址:http://adagi.baihongyu.com/