eclipse ini configuration

前端 未结 7 1780
温柔的废话
温柔的废话 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-28 10:15

    The default allocation is ridiculous on modern machines; I wish Eclipse would adjust the default to the actual machine or at least be more interactive.

    As suggested by Eric, you should increase the max heap. However, you may also want to adjust permgen.

    I've seen somewhere the following numbers:

    For 512MB RAM: -Xms256m -Xmx256m -XX:PermSize=64m -XX:MaxPermSize=64m

    For 1024MB Ram: -vmargs -Xms512m -Xmx512m -XX:PermSize=128m -XX:MaxPermSize=128m

    For 4GB Ram the recommendation was to go 1024m ram if you need it, and as much as 512m permgen if you need it.

提交回复
热议问题