Eclipse 运行大java项目时 out of memory
来源:互联网 发布:网络与高性能计算 编辑:程序博客网 时间:2024/06/05 02:48
运行一些比较大的java项目时,经常报这个错:
MESSAGE An internal error occurred during: "Compacting resource model". !STACK 0 java.lang.OutOfMemoryError: GC
修改Eclipse 或 MyEclipse 的启动参数即可:
如:E:\Program Files\MyEclipse\MyEclipse 10\myeclipse.ini
(红色部分为新增内容)
#utf8 (do not remove)
#utf8 (do not remove)
-startup
../Common/plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
../Common/plugins/org.eclipse.equinox.launcher.i18n.win32.win32.x86_64_3.2.0.v201103301700
-install
e:/Program Files/MyEclipse/MyEclipse 10
-vm
e:/Program Files/MyEclipse/Common/binary/com.sun.java.jdk.win32.x86_64_1.6.0.013/bin/javaw.exe
-vmargs
-Xmx512m
-Xmn128m
-XX:PermSize=128M
-XX:MaxPermSize=128M
-Dosgi.nls.warnings=ignore
#utf8 (do not remove)
-startup
../Common/plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
../Common/plugins/org.eclipse.equinox.launcher.i18n.win32.win32.x86_64_3.2.0.v201103301700
-install
e:/Program Files/MyEclipse/MyEclipse 10
-vm
e:/Program Files/MyEclipse/Common/binary/com.sun.java.jdk.win32.x86_64_1.6.0.013/bin/javaw.exe
-vmargs
-Xmx512m
-Xmn128m
-XX:PermSize=128M
-XX:MaxPermSize=128M
-Dosgi.nls.warnings=ignore
参考:http://www.oschina.net/question/213372_76038
- Eclipse 运行大java项目时 out of memory
- 解决eclipse load大文件时out of memory问题
- Eclipse 3.2 out of memory
- eclipse build out of memory
- 解决 在jetty 上运行时 java out of memory异常
- Java中处理大数据量时产生OOM(Out of Memory)异常的一点经验
- Java中处理大数据量时产生OOM(Out of Memory)异常的一点经验
- Java Out of Memory 分析
- Java heap out of memory
- Java Out of Memory 分析
- 运行Ant报Out of Memory错误
- eclipse out of memory错误的解决方法
- 避免Eclipse经常出现Out Of Memory
- Out of memory error in Eclipse
- createBitmap时out of memory!!!!!!!
- maven编译项目抛出out of memory
- Out Of Memory Issues in java
- android 之java out of memory
- NSNotificationCenter 的详细说明
- 如何为Eclipse安装主题(Color Theme)
- iOS高效开发必备的10款Objective-C类库
- ios开发总结日志(2011-6-12)
- 视图切换的其中一种方法
- Eclipse 运行大java项目时 out of memory
- xcode 常用快捷键大全
- mac下svn:issuer is not trusted 问题的解决办法
- Objective-c之NSArray(NSMutableArray)
- 终端更改mac hosts
- iPhone 项目使用静态库(xcode使用)
- RAID10与RAID01比较
- SCPlugin的使用-Mac下的TortoiseSVN
- windows 自带远程桌面的使用