Exception in thread "http-bio-8080-exec-7"内存溢出问题

来源:互联网 发布:软件搬家 编辑:程序博客网 时间:2024/06/05 18:06

<span style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; background-color: rgb(255, 255, 255);">      在一次搭建项目时,遇到这样的错误,导致了项目死活都不能够正常运行,真是捉急,最后 抓狂解决了这个问题。</span>

     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-Xmx1024m
   2.然后

然后在eclipse的server栏,找到tomcat选项,打开tomcat的配置

在arguments 标签框下面的VM Arguments 框后面接上自己的tomcat启动虚拟机参数就可以了

-Xms128m -Xmx1024m -XX:MaxPermSize=512m

1 0