eclipse ini配置 [英] eclipse ini configuration

查看:109
本文介绍了eclipse ini配置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

实际上我和我的朋友正在尝试学习和使用eclipse 3.4,并且我们在工作时遇到一些堆内存问题,我的朋友建议增加内存分配给eclipse ide,因为他有4GB RAM,他想分配足够堆,分配适当的大小,并启用平行垃圾收集到这个eclipse ide。



我们人们无法通过修改eclipse.ini文件来实现这一点,他想分配1GB的RAM到eclipse。



请帮助我们在这个



谢谢

解决方案

仅供参考:正如Carsten所说, eclipse.ini 文件对于它的线条的顺序和格式。 这里是他们的维基页面,并提供了一些示例配置。
正如他们所说,请记住:



  1. 选项的每个选项和每个参数必须在自己的一行。

  2. -vmargs 之后的所有行都作为参数传递给JVM,因此eclipse的所有参数和选项必须在之前指定 - vmargs (就像在命令行中使用参数一样)


所以,例如,您可以使用Eclipse启动器专用选项(第一行的选项名称,下一个选项值)来设置 MaxPermSize

   -  launcher.XXMaxPermSize 
256m

然后,在 -vmargs 选项名称之后,您可以传递相对于垃圾收集器的参数。例如:

  -vmargs 
-XX:-UseParallelGC
/ pre>

希望有帮助。


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:

  1. Each option and each argument to an option must be on its own line.
  2. 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆