Speed up your eclipse as a super fast IDE

Follow these steps to speed up your eclipse as a super fast IDE , it works for 32 & 64 bit version eclipse/jdk on my windows 7 x64.

1.Disable antivirus software, or add your jdk & eclipse & workspace & other related folder to white list in your antivirus software.

2.Disable unecessary validations and startup action in eclipse reference.

For validations: on eclipse menu Windows -> Preferences -> Validation, click “Disable All”, and then select the validator which you need. I selected “Classpath Dependency Validator” only.

For startup action: on eclipse menu Windows -> Preferences, type “startup”, select “Startup and Shutdown”, untick the options you don’t need. (Thanks for David’s suggest,  I’ve added the above 2 detail steps for readers)

3.Modify eclipse.ini to set the Xmn(new generation size), Xms and Xmx, enable parallel GC

4.Create a ram disk(virtual disk) on memory, and put your jdk on the ram disk.
You can use imdisk to create ram disk. Firstly download it from: http://www.ltr-data.se/opencode.html/#ImDisk,  and install it.

Then set the ImDisk driver to auto-load at Command Prompt with administrative privileges (for example right-click, start as Administrator), type:

sc config imdisk start= auto
net start imdisk

create a 200m ram disk as driver n by:
imdisk -a -t vm -s 300m -m n:

then you should format the ram disk manually.

later ,if you would like to remove the ram disk, just run the command:
imdisk -D -m n:

5.Make sure you are using sun jdk, not open jdk/gcj nor other jdk on linux.
If you are not satified with the after the above steps, install jrockit instead of sun jdk, and change some of the vm options by jrocket specification,
jrockit is faster than sun jdk.

Some note:

On my laptop(Aspire 4745G 4G mem ), windows 7 x64, by default, it takes more than 30 seconds to start eclipse.  After the vm options tuned,  takes only 15 seconds.

And after jdk moved to ram disk, it takes 10 seconds to startup.

Digg This
Reddit This
Stumble Now!
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)
This entry was posted in java and tagged , , , , . Bookmark the permalink.

57 Responses to Speed up your eclipse as a super fast IDE

  1. Ashish says:

    Yes, that works perfectly. On a 4GB Core 2 Duo laptop, it reduced from 30+ secs to 6 secs just by the eclipse.ini modifications mentioned above.


  2. Pingback: Speed up your eclipse as a super fast IDE | Euler的备忘录 « Netcrema – creme de la social news via digg + delicious + stumpleupon + reddit

  3. Pingback: Speed up your eclipse as a super fast IDE | Euler的备忘录 | yahoo

  4. Pingback: Speed up your eclipse as a super fast IDE | Euler的备忘录 : Popular Links : eConsultant

  5. asif says:

    awesum. It works :)

  6. Pingback: links for 2011-06-25 « that dismal science

  7. Firstly this only covers starting the Eclipse application, and while this appears to save several seconds I tend to leave the application running most of the day so this is only a small gain in the larger picture. It does not address any metrics about the continued running of the application.
    Secondly there are no details provided about step 2 so readers do not have sufficient information to perform this step (hint: on the Eclipse menu go to Window > Preferences and type ‘startup’

    • euler [