FAQ How do I increase the heap size available to Eclipse?
2015-06-17 10:41
489 查看
(Redirected from FAQ How do I increase the heap size available to Eclipse)
Some JVMs put restrictions on the total amount of memory available on the heap. If you are getting OutOfMemoryErrors while running Eclipse, the VM can be told to let the heap grow to a larger amount by passing the -vmargs command to the Eclipse launcher. For example, the following command would run Eclipse with a heap size of 256MB:
eclipse [normal arguments] -vmargs -Xmx256M [more VM args]
The arguments after -vmargs are directly passed to the VM. Run java -X for the list of options your VM accepts. Options starting with -X are implementation-specific and may not be applicable to all VMs.
You can also put the extra options in
eclipse.ini.
Here is an example;
-startup plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar --launcher.library plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20120913-144807 -showsplash org.eclipse.platform --launcher.XXMaxPermSize 256m --launcher.defaultAction openFile -vmargs -Xms512m
-Xmx1024m -XX:+UseParallelGC -XX:PermSize=256M -XX:MaxPermSize=512M
相关文章推荐
- Spring学习笔记(11)----自定义属性编辑器
- Spring学习笔记(10)----公共属性的注入配置
- Spring学习笔记(8)----属性注入的方式
- Spring学习笔记(7)----装配各种集合类型的属性
- Spring学习笔记(6)----编码剖析Spring依赖注入的原理
- java敏感词过虑-基于多叉树原理
- Spring学习笔记(5)----依赖注入的简单实现
- 在Eclipse中主题预览失败Theme preview fails in Eclipse
- Java枚举介绍及使用详解
- Spring学习笔记(4)----Bean节点信息配置
- Spring学习笔记(3)----编码剖析Spring管理Bean的原理
- Sping学习笔记(2)----实例化Bean的三种方式
- 【Heritrix基础教程之1】在Eclipse中配置Heritrix
- Eclipse 快捷键大全
- java.util.logging.Logger基础教程
- Java路径问题最终解决方案—可定位所有资源的相对路径寻址
- 解决Eclipse中文乱码
- Spring学习笔记(1)----简单的实例
- Java解析HTML之HTMLParser使用与详解
- 如何在Eclipse中查看Android API源码以及support包源码