解决Eclipse和MyEclipsejava.lang.OutOfMemoryError Java heap space的错误
2014-05-15 14:36
573 查看
Eclipse和MyEclipse出现错误:java.lang.OutOfMemoryError: Java heap space的错误,很熟悉的错误信息,可咋就想不起来在哪里设JVM的参数啊。请看下面:
1,从Intalled JREs里修改;window->Preferences->Java->InstalledJREs,选择当前的JRE,然后edit它;在新窗口里设置Default VM Arguments为 -Xms128M -Xmx512M即可;这个设置应该对所有的工程都有效;
2,如果仅仅是想对某个工程的有效的话,从Debug... 或Run...里修改,在(x)=Arguments里设置和上面相同的参数即可;
3,如果tomcat和resin,window->Preferences->Application Servers->
Tomcat->Tomcat 6.x,选择JDK设置即可;
大概就是这些设置,应该可以解决OutOfMemoryError: Java heap space的问题。
1,从Intalled JREs里修改;window->Preferences->Java->InstalledJREs,选择当前的JRE,然后edit它;在新窗口里设置Default VM Arguments为 -Xms128M -Xmx512M即可;这个设置应该对所有的工程都有效;
2,如果仅仅是想对某个工程的有效的话,从Debug... 或Run...里修改,在(x)=Arguments里设置和上面相同的参数即可;
3,如果tomcat和resin,window->Preferences->Application Servers->
Tomcat->Tomcat 6.x,选择JDK设置即可;
大概就是这些设置,应该可以解决OutOfMemoryError: Java heap space的问题。
相关文章推荐
- 解决Eclipse和MyEclipsejava.lang.OutOfMemoryError Java heap space的错误
- 解决Eclipse和MyEclipsejava.lang.OutOfMemoryError Java heap space的错误
- 解决Eclipse和MyEclipsejava.lang.OutOfMemoryError Java heap space的错误
- eclipse出现java.lang.OutOfMemoryError: Java heap space解决方法
- eclipse启动项目报出jvm内存溢出异常解决办法java.lang.OutOfMemoryError: Java heap space
- java.lang.OutOfMemoryError: Java heap space 错误解决方法
- Eclipse中java.lang.OutOfMemoryError: Java heap space 的问题解决方法
- 解决eclipse maven install 造成JVM 内存溢出(java.lang.OutOfMemoryError: Java heap space)
- java虚拟机常见错误 -- java.lang.OutOfMemoryError: Java heap space解决办法
- Eclipse:java.lang.OutOfMemoryError: Java heap space解决方法
- tomcat、WebLogic、Eclipse常见的java.lang.OutOfMemoryError: Java heap space 的解决方法
- 在myeclipse中启动Tomcat时,提示"ava.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: Java heap space 的解决
- java.lang.OutOfMemoryError: Java heap space 的解决方法
- java.lang.OutOfMemoryError: Java heap space解决办法
- eclipse java.lang.OutOfMemoryError: Java heap space
- java.lang.OutOfMemoryError: Java heap space + myeclipse中分配tomcat启动时所占内存大小