Max value of Xmx and Xms in Eclipse?

后端 未结 4 1640
孤街浪徒
孤街浪徒 2020-12-15 17:23

Now my settings for these in the ini file are:

-Xms768M -Xmx1024M

When setting them higher, eclipse doesn\'t start anymore... Is there a way to increase thes

相关标签:
4条回答
  • 2020-12-15 17:44

    Why do you need -Xms768 (small heap must be at least 768...)?

    That means any java process (search in eclipse) will start with 768m memory allocated, doesn't that? That is why your eclipse isn't able to start properly.

    Try -Xms16 -Xmx2048m, for instance.

    0 讨论(0)
  • 2020-12-15 17:50

    I have tried the following config for eclipse.ini:

    org.eclipse.epp.package.jee.product
    --launcher.defaultAction
    openFile
    --launcher.XXMaxPermSize
    1024M
    -showsplash
    org.eclipse.platform
    --launcher.XXMaxPermSize
    1024m
    --launcher.defaultAction
    openFile
    --launcher.appendVmargs
    -vmargs
    -Dosgi.requiredJavaVersion=1.6
    -Xms128m
    -Xmx2048m
    

    Now eclipse performance is about 2 times faster then before.

    You can also find a good help ref here: http://help.eclipse.org/indigo/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/misc/runtime-options.html

    0 讨论(0)
  • 2020-12-15 17:53

    The maximum values do not depend on Eclipse, it depends on your OS (and obviously on the physical memory available).

    You may want to take a look at this question: Max amount of memory per java process in Windows?

    0 讨论(0)
  • 2020-12-15 18:03

    I am guessing you are using a 32 bit eclipse with 32 bit JVM. It wont allow heapsize above what you have specified.

    Using a 64-bit Eclipse with a 64-bit JVM helps you to start up eclipse with much larger memory. (I am starting with -Xms1024m -Xmx4000m)

    0 讨论(0)
提交回复
热议问题