Eclipse下java.lang.OutOfMemoryError: Java heap space的解决办法
2018-02-07 17:34
666 查看
今天在用MyEclipse 运行main方法是出现:java.lang.OutOfMemoryError: Java heap space
按照如下办法改解决:
1,从Intalled JREs里修改;window->Preferences->Java->Installed JREs,选择当前的JRE,然后edit它;
在新窗口里设置Default VM Arguments为 -Xms256M -Xmx1024M即可;这个设置应该对所有的工程都有效;
2,如果仅仅是想对某个工程的有效的话,从Debug... 或Run...里修改,在(x)=Arguments里设置和上面相同的参数即可;
3,如果小猫猫Tomcat的话,window->Preferences->Application Servers->Tomcat->Tomcat 6.x,选择JDK设置即可;
大概就是这些设置,应该可以解决OutOfMemoryError: Java heap space的问题。
按照如下办法改解决:
1,从Intalled JREs里修改;window->Preferences->Java->Installed JREs,选择当前的JRE,然后edit它;
在新窗口里设置Default VM Arguments为 -Xms256M -Xmx1024M即可;这个设置应该对所有的工程都有效;
2,如果仅仅是想对某个工程的有效的话,从Debug... 或Run...里修改,在(x)=Arguments里设置和上面相同的参数即可;
3,如果小猫猫Tomcat的话,window->Preferences->Application Servers->Tomcat->Tomcat 6.x,选择JDK设置即可;
大概就是这些设置,应该可以解决OutOfMemoryError: Java heap space的问题。
相关文章推荐
- Eclipse 报 “Exception in thread "main" java.lang.OutOfMemoryError: Java heap space ”错误的解决办法
- Eclipse 报 “Exception in thread "main" java.lang.OutOfMemoryError: Java heap space ”错误的解决办法
- Eclipse 报 “Exception in thread "main" java.lang.OutOfMemoryError: Java heap space ”错误的解决办法
- Eclipse 报 “Exception in thread "main" java.lang.OutOfMemoryError: Java heap space ”错误的解决办法以及文本文件换行
- Eclipse 报 “Exception in thread "main" java.lang.OutOfMemoryError: Java heap space ”错误的解决办法
- Eclipse 报 “Exception in thread "main" java.lang.OutOfMemoryError: Java heap space ”错误的解决办法
- Eclipse 报 “Exception in thread "main" java.lang.OutOfMemoryError: Java heap space ”错误的解决办法
- Eclipse 报 “Exception in thread "main" java.lang.OutOfMemoryError: Java heap space ”错误的解决办法
- Eclipse 报 “Exception in thread "main" java.lang.OutOfMemoryError: Java heap space ”错误的解决办法
- java.lang.OutOfMemoryError: Java heap space的解决办法
- java.lang.OutOfMemoryError: Java heap space 解决办法
- 转 MyEclipse 报“Exception in thread "main" java.lang.OutOfMemoryError: Java heap space ”错误的解决办法
- eclipse启动tomcat中出现java.lang.OutOfMemoryError: PermGen space 解决办法
- eclipse:Tomcat设置jvm,解决java.lang.OutOfMemoryError: Java heap space 堆内存溢出
- Eclipse 报 “Exception in thread "main" java.lang.OutOfMemoryError: Java heap space ”错误的解决
- eclipse启动项目报出jvm内存溢出异常解决办法java.lang.OutOfMemoryError: Java heap space
- java.lang.OutOfMemoryError: Java heap space的解决办法
- java.lang.OutOfMemoryError: Java heap space 之解决办法
- java.lang.OutOfMemoryError: Java heap space的解决办法
- java.lang.OutOfMemoryError: PermGen space 和 Java heap space 关于MyEclipse eclipse tomcat内存溢解决方法