eclipse ini配置 [英] eclipse ini configuration
问题描述
实际上我和我的朋友试图学习和使用eclipse 3.4,我们在工作时遇到一些堆内存问题,我的朋友建议增加内存分配到eclipse ide,因为他有4GB RAM,他想分配足够堆,分配体面的perm大小,并启用并行垃圾收集到这个eclipse的。
actually i and my friend are trying to learn and use eclipse 3.4 and we are having some heap memory issue while working, and my friend suggested to increase the memory allocation to eclipse ide as he has 4GB RAM and he wants to allocate enough heap, allocate decent perm size, and enable parallel garbage collection to this eclipse ide.
我们的人无法实现这一点通过修改eclipse.ini文件,
we people are unable to achieve this by modifying the eclipse.ini file and he wants to allocate 1GB of RAM to eclipse.
请帮助我们
感谢
推荐答案
仅供参考:Carsten说, eclipse.ini
文件其行的顺序和格式。 这里是他们的Wiki页面,有一些示例配置。
正如他们所说,记住:
Just for reference: as Carsten said, the eclipse.ini
file is quite picky about the order and format of its lines. Here's their Wiki page, with some example configurations.
As they say, remember that:
- 每个选项和每个选项的参数必须在一行。
-
-vmargs
之后的所有行作为参数传递给JVM,因此必须在之前指定eclipse的所有参数和选项, -vmargs
(就像在命令行中使用参数一样)
- Each option and each argument to an option must be on its own line.
- All lines after
-vmargs
are passed as arguments to the JVM, so all arguments and options for eclipse must be specified before-vmargs
(just like when you use arguments on the command-line)
因此,例如,您可以使用Eclipse启动程序特定的选项(第一行上的选项名称,下一个选项值)设置 MaxPermSize
:
So, for example, you can set the MaxPermSize
with an Eclipse launcher-specific option (option name on the first line, option value on the next):
--launcher.XXMaxPermSize
256m
然后,在 -vmargs
选项名称后,可以传递相对于垃圾回收器的参数。例如:
Then, after the -vmargs
option name, you can pass the parameters relative to the garbage collector. For example:
-vmargs
-XX:-UseParallelGC
希望它有帮助。
这篇关于eclipse ini配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!