I found that eclipse is incredibly slow in OSX, switching from tab to tab, reorganizing or switching the perspectives, or maximizing the tabs, it is so slow that can barely be defined as usable. If you are experiencing the same problem, try to modify the eclipse.ini (Eclipse.app/Contents/MacOS/eclipse.ini) in this way.
Change the line

-Dosgi.requiredJavaVersion=1.5

to:

-Dosgi.requiredJavaVersion=1.6

Of course, you need to have JDK 1.6 running eclipse.

After the change eclipse starts up very much faster and runs "smooth" as in Windows or Linux.

Additionally I doubled all the memory values in the eclipse.ini file, to grant eclipse more memory resources.


13 Responses to “Eclipse slow in OSX”  

  1. 1 Filippo

    It works!
    Incredible Eclipse for Mac is shipped with defaults that make it so slow. In particular the XML editor was quite useless with the standard memory settings.

  2. 2 Luigi

    That’s the bad thing with precooked “defaults” in software, typical with Mac. Cooking it by yourself tastes better (at least, to you).

  3. 3 magomarcelo

    Didn’ t find this option with Eclipse Cocoa 64, but performance is terrible all the same, even with minimal plugins, I think I will follow Gabriele Lana someday and “upgrade” my IDE to vi ;)

  4. 4 Luigi

    Marcello,

    I am using eclipse-jee-galileo-SR1-macosx-cocoa.tar.gz; I just discovered the 64bit version. If the performance is so bad, what’s the point then to use the 64bit ? downgrade to 32.
    After the above hack, the performance difference is huge.

    Luigi.

  5. 5 Luigi

    Marcello, check it better. I just downloaded the 64bit version and I got the file (and the option too):

    luigi@hal9000:~/Downloads/eclipse/Eclipse.app/Contents/MacOS$ cat eclipse.ini
    -startup
    ../../../plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
    –launcher.library
    ../../../plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.0.1.R35x_v20090707
    -product
    org.eclipse.epp.package.jee.product
    -showsplash
    org.eclipse.platform
    –launcher.XXMaxPermSize
    256m
    -vmargs
    -Dosgi.requiredJavaVersion=1.5
    -XstartOnFirstThread
    -Dorg.eclipse.swt.internal.carbon.smallFonts
    -XX:MaxPermSize=256m
    -Xms40m
    -Xmx512m
    -Xdock:icon=../Resources/Eclipse.icns
    -XstartOnFirstThread
    -Dorg.eclipse.swt.internal.carbon.smallFonts

  6. 6 Bruno Bossola

    Cool! You act like you were using Linux :)

  7. 7 magomarcelo

    my eclipse is different – like the bank ;) but don’t ask me why!
    here’s my eclipse.ini, but I’ll try also yours!

    -startup
    ../../../plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
    --launcher.library
    ../../../plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.0.1.R35x_v20090707
    -showsplash
    org.eclipse.platform
    --launcher.XXMaxPermSize
    256m
    -vmargs
    -Xms40m
    -Xmx512m
    -Xdock:icon=../Resources/Eclipse.icns
    -XstartOnFirstThread
    -Dorg.eclipse.swt.internal.carbon.smallFonts

    maybe the difference is that I always start installing from the eclipse platform runtime binary instead of a pre-packaged version then add only minimal plugins to avoid having stuff I don’t like and use like mylyn or the web tools and data tools crap or the cvs client

    anyway I’m just trying, having a working eclipse install looks like an endless quest without a solution and cocoa 64 was just another try, but at this point carbon seems to me even better than cocoa 32 even if it looks slightly worse, besides the fact that I would need that anyway if I should ever install Flash Builder as plugin, another thing that I try to avoid for performance reasons, even if FB is missing so many eclipse standard features that at least I have to reinstall them on the standalone version re-adding the galileo update center…

  8. 8 Luigi

    I am making some more study about 64bit version of Eclipse. From what I found around, the result is that 64bit advantages are about the possibility to address more memory. The rumors about best performances of 64bit programs sounds more like a legend and some benchmarks demonstrate it.
    About eclipse, it turns out you have also additional troubles, due to the earliness of the 64bit support. Possibly, if you install some plugin using JNI it could have problems if they don’t support the 64bit. And it is sure that the 64bit requires (much?) more memory to run.
    It looks like there’s no good reason in running eclipse 64-bit.

  9. 9 Cheecoh

    I’ve got still performance issues…

    using clean SR2-macosx-carbon/cocoa/cocoa-x86_64 versions and all are very slow… even if i type a bunch of chars i could stop typing and see how the last chars appears with some seconds of difference…

    i have a macbook late 2008 and a mac mini and i really cant imagine that the performance is soo bad….

    maybe some one could help?

  10. 10 Greg

    Definitely helped me.

    Also I am running latest Mac OS X 10.6.6 and not sure if latest 64 bit Eclipse version would work same way on older Mac OSX like 10.5 or 10.4 ..

    Also added some memory to start up parameter before and it wasn’t working until i found this post..

    How strange just little change make such a big difference..

  11. 11 andrew

    Even a couple years later, with Eclipse Juno on OS X 10.7.5, I was pulling my hair out waiting for remote directories to open, and having Eclipse crash on me all the time!

    That one change from 1.5 to 1.6 made a huge difference! Thank you :)

  12. 12 CRISTIAN

    SORRY THE CAPS, FOUND THE SOLUTION QUICKLY…

    UNINSTALLED BIRT PLUGINS FROM ECLIPSE, NOT BIRT, AND A LOT OF OTHER PLUGINS COMING WITH ECLIPSE…
    I ALSO DISABLED JAVA AUTO ACTIVATE CONTENT ASIST
    AND INCREASED MEMORY A LOT ON ECLIPSE.INI TOO..

    THIS SOLUTION BOOSTED MY ECLIPSE, UNBELIEVABLE FAST AFTER A MONTH SUFFERING THIS SHIT ON MACOSX, WHICH DOESNT HAPPEN TO ME ON PLAIN LINUX, SAY UBUNTU !!!!

  13. 13 Aaron

    Thanks! This was killing me: switching between XML editor tabs taking up to 3 seconds.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>



Calendar

April 2010
M T W T F S S
« Jan   May »
 1234
567891011
12131415161718
19202122232425
2627282930  

Follow me

twitter flickr LinkedIn feed

Subscribe by email

Enter your email address:

Archives


Categories

Tag Cloud


Listening