Myeclipse,eclipse下java.lang.OutOfMemoryError: Java heap space的解决
2010-03-30 10:19
465 查看
Myeclipse,eclipse下java.lang.OutOfMemoryError: Java heap space的解决
今天又打开Eclipse那似曾相识的IDE,想了想才发现自己从2007年3月份后几乎再没有使用它。工具就得常用,不用渐渐的就淡忘了。于是import进去个工程,run...,居然是java.lang.OutOfMemoryError: Java heap space的错误,很熟悉的错误信息,可咋就想不起来在哪里设JVM的参数啊。还是百度一下吧。 1,从Intalled JREs里修改;window->Preferences->Java->Installed JREs,选择当前的JRE,然后edit它;在新窗口里设置Default VM Arguments为 -Xms128M -Xmx512M即可;这个设置应该对所有的工程都有效; 2,如果仅仅是想对某个工程的有效的话,从Debug... 或Run...里修改,在(x)=Arguments里设置和上面相同的参数即可; 3,如果小猫猫Tomcat的话,window->Preferences->Application Servers->Tomcat->Tomcat 6.x,选择JDK设置即可; 大概就是这些设置,应该可以解决OutOfMemoryError: Java heap space的问题。 |
相关文章推荐
- java.lang.OutOfMemoryError: PermGen space 和 Java heap space 关于MyEclipse eclipse tomcat内存溢解决方法
- Eclipse 报 “Exception in thread "main" java.lang.OutOfMemoryError: Java heap space ”错误的解决
- Eclipse 报 “Exception in thread "main" java.lang.OutOfMemoryError: Java heap space ”错误的解决办法
- Eclipse java.lang.OutOfMemoryError: Java heap space 解决方法
- Eclipse 报 “Exception in thread "main" java.lang.OutOfMemoryError: Java heap space ”错误的解决办法
- 解决Eclipse和MyEclipsejava.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和MyEclipsejava.lang.OutOfMemoryError Java heap space的错误
- Eclipse 报 “Exception in thread "main" java.lang.OutOfMemoryError: Java heap space ”错误的解决办法
- Myeclipse下java.lang.OutOfMemoryError: Java heap space的解决
- eclipse:Tomcat设置jvm,解决java.lang.OutOfMemoryError: Java heap space 堆内存溢出
- eclipse报错:“java.lang.OutOfMemoryError: Java heap space ”解决方法
- Eclipse 报 “Exception in thread "main" java.lang.OutOfMemoryError: Java heap space ”错误的解决办法
- Eclipse下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 ”错误的解决办法
- Myeclipse下java.lang.OutOfMemoryError: Java heap space的解决
- Myeclipse下java.lang.OutOfMemoryError: Java heap space的解决