Speeding up Eclipse (a bit) with +UnlockExperimentalVMOptions

April 30th, 2010 Leave a comment Go to comments

Although Sun’s JVM had this for quite a long time now, you might not know you can turn on some experimental options such as UseFastAccessorMethods and UseG1GC, which is a new garbage collector that uses parallel processors.

This might improve quite a bit your Eclipse’s performance, it improved mine. So try it out and share what did worked for you.

Warning: do NOT turn those flags on at your production environments.

Just add to your -vmargs launching arguments:

eclipse -vmargs

-XX:+UnlockExperimentalVMOptions

-XX:+UseG1GC

-XX:+UseFastAccessorMethods

Some people reported a great improvement in performance, not only in Eclipse, but also in other Java apps. For me it improved a little.

Some people also used other parameters (which didnt worked for my environment).

A complete list of jvm options may be found here, some are interesting like:

-XX:+AggressiveHeap
-XX:+AggressiveOpts
-XX:ParallelGCThreads=2
-XX:ThreadPriorityPolicy=1

Does it works for you? Please comment.

Tags: ,

Comments

  1. vogella says:

    Nice! All tips to speed up Eclipse are very welcome.

  2. Martin Dilger says:

    thank you very much for this tip,
    but I can't see any performance-optimization here,
    eclipse runs as always.

  3. ugosan says:

    You are right ^^
    Probably the performance gain here is due to the G1GC garbage collector only.

    I will update the post, thank you for the correction!

  4. ugosan says:

    Did you tried the Aggressive options as well?

    perhaps if you try with: -vmargs -XX:ParallelGCThreads=20 -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:SurvivorRatio=8 -XX:TargetSurvivorRatio=90 -XX:MaxTenuringThreshold=31 -XX:+AggressiveOpts

    It uses the old parallel garbage collection, but with some options, try it.
    thank you for the input

  5. [...] have been reported in this blog post to potentially speed up Eclipse. See all the JVM options here and also in the official Java Hotspot [...]

    [WORDPRESS HASHCASH] The comment’s server IP (72.232.117.6) doesn’t match the comment’s URL host IP (76.74.254.120) and so is spam.

custom essay

  • There are variegated situations and underlays in my life chiefly, when I receive custom essay privately. The basic one is that principally I haven�t whacking talent to construct sundry whopping runs. It is better for me completely to trace the specific aid. My amazing ordered holds are not shady and predominantly without basic slips, which must preclude upshots of my tested study.