eclipse ini配置 [英] eclipse ini configuration
问题描述
我们人们无法通过修改eclipse.ini文件来实现这一点,他想分配1GB的RAM到eclipse。
请帮助我们在这个
谢谢
仅供参考:正如Carsten所说, eclipse.ini
文件对于它的线条的顺序和格式。 这里是他们的维基页面,并提供了一些示例配置。
正如他们所说,请记住:
- 选项的每个选项和每个参数必须在自己的一行。
-vmargs
之后的所有行都作为参数传递给JVM,因此eclipse的所有参数和选项必须在之前指定 - vmargs
(就像在命令行中使用参数一样)
所以,例如,您可以使用Eclipse启动器专用选项(第一行的选项名称,下一个选项值)来设置 MaxPermSize
:
- launcher.XXMaxPermSize
256m
然后,在 -vmargs
选项名称之后,您可以传递相对于垃圾收集器的参数。例如:
-vmargs
/ pre>
-XX:-UseParallelGC
希望有帮助。
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.
we people are unable to achieve this by modifying the eclipse.ini file and he wants to allocate 1GB of RAM to eclipse.
kindly please help us in this
Thanks
解决方案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:
- 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)
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
Then, after the
-vmargs
option name, you can pass the parameters relative to the garbage collector. For example:-vmargs -XX:-UseParallelGC
Hope it helps.
这篇关于eclipse ini配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!