Tomcat 启动项目报错 java.lang.OutOfMemoryError: Java heap space

近日使用myeclipse 部署web项目,启动tomcat时报错:

SEVERE: Error waiting for multi-thread deployment of directories to completehostConfig.deployWar=Deploying web application archive {0}
java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: Java heap space

解决方法,在myeclipse中添加配置;

window--》preferences--》Java--》Installed Jres

选中配置的jdk,点击 edit。在Default VM Arguments 中添加参数:-Xms128m -Xmx512m。我设置这个值就够了,具体大小看你自己的情况。

posted @ 2016-05-25 09:06  逃离沙漠  阅读(2328)  评论(0编辑  收藏  举报