java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: Java heap space
2017-04-17 11:32
597 查看
在使用MyEclipse(Tomcat版本)打开项目时,出现报错如下:
通过问题描述,显示java heap space,堆栈溢出。
解决方法:
首先查看tomcat中jdk的内存大小
windows——preferences——myeclipse——servers——tomcat——选择你自己的tomcat版本——optional java VM arguments.
有时候需要在里面扩展jvm的内存大小,有时候因为这里面限制大小了而报错。
按上述方法修改之后,还有错误,就表示jre里面jdk的内存不够
解决方法如下:
windows——preferences——java——installed JRES——选择自己的jdk版本——edit——修改Default VM arguments——如图所示——点击apply
问题解决。
一般堆栈溢出就是这两个地方的jdk内存范围太小,需要修改。至于到底是要修改tomcat还是JRES就需要视情况而定。
通过问题描述,显示java heap space,堆栈溢出。
解决方法:
首先查看tomcat中jdk的内存大小
windows——preferences——myeclipse——servers——tomcat——选择你自己的tomcat版本——optional java VM arguments.
有时候需要在里面扩展jvm的内存大小,有时候因为这里面限制大小了而报错。
按上述方法修改之后,还有错误,就表示jre里面jdk的内存不够
解决方法如下:
windows——preferences——java——installed JRES——选择自己的jdk版本——edit——修改Default VM arguments——如图所示——点击apply
问题解决。
一般堆栈溢出就是这两个地方的jdk内存范围太小,需要修改。至于到底是要修改tomcat还是JRES就需要视情况而定。
相关文章推荐
- java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: Java heap space
- java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: Java heap space
- java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: Java heap space
- java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: Java heap space
- 2016.6.30 java.util.concurrent.ExecutionException java.lang.OutOfMemoryError
- tomcat内存溢出的解决方法(java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError:)
- java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: Java he
- tomcat内存溢出的解决方法(java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError:)
- 本地启动tomcat的时候报内存溢出错误:java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: PermGen space
- 本地启动tomcat的时候报java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: PermGen space
- Error:Uncaught translation error: java.util.concurrent.ExecutionException: java.lang.OutOfMemoryErro
- 2016.6.30 java.util.concurrent.ExecutionException java.lang.OutOfMemoryError
- tomcat内存溢出的解决方法(java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError:)
- tomcat 内存溢出 java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError
- tomcat内存溢出的解决方法(java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError:)
- Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
- Exception in thread "HSQLDB Connection @429be9" java.lang.OutOfMemoryError: Java heap space
- Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
- 【未解决】Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
- Exception in thread "main" java.lang.OutOfMemoryError: Java heap space