How can I reduce Eclipse Ganymede's memory use?

后端 未结 13 1122
野性不改
野性不改 2020-12-02 05:33

I use the recent Ganymede release of Eclipse, specifically the distro for Java EE and web developers. I have installed a few additional plugins (e.g. Subclipse, Spring, Find

13条回答
  •  被撕碎了的回忆
    2020-12-02 06:09

    I don't know about Eclipse specifically, I use IntelliJ which also suffers from memory growth (whether you're actively using it or not!). Anyway, in IntelliJ, I couldn't eliminate the problem, but I did slow down the memory growth by playing with the runtime VM options. You could try resetting these in Eclipse and see if they make a difference.

    You can edit the VM options in the eclipse.ini file in your eclipse folder.

    I found that (in IntelliJ) the garbage collector settings had the most effect on how fast the memory grows.

    My settings are:

    -Xms128m
    -Xmx512m
    -XX:MaxPermSize=120m
    -XX:MaxGCPauseMillis=10
    -XX:MaxHeapFreeRatio=70
    -XX:+UseConcMarkSweepGC
    -XX:+CMSIncrementalMode
    -XX:+CMSIncrementalPacing
    

    (See http://piotrga.wordpress.com/2006/12/12/intellij-and-garbage-collection/ for an explanation of the individual settings). As you can see, I'm more concerned with avoiding long pauses during editting than actuial memory usage but you could use this as a start.

提交回复
热议问题