eclipse ini configuration

前端 未结 7 1795
温柔的废话
温柔的废话 2020-12-28 09:43

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 alloc

7条回答
  •  醉酒成梦
    2020-12-28 10:26

    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.

提交回复
热议问题