speed up Eclipse on OSX - eclipse

Trying to work with Eclipse for Android (ADT plugin) development at my iMac (2.4Ghz, 4Gb RAM) and it's very slow (Eclipse Galileo SR2 x64).
I know about eclipse.ini tricks and make some changes like:
-XX:MaxPermSize=256m
-Xms256m
-Xmx1024m
-XX:+UseCompressedOops
-XX:+AggressiveOpts
-XX:+UseConcMarkSweepGC
And use Java 1.6 by default:
-Dosgi.requiredJavaVersion=1.6
But still have freezing at small project. Even scrolling of class with 50LOC very slow. At same projects IntellijIdea works much faster.
Have some secret spells to win?

I find the best way to keep eclipse performant is to use as few plugins as possible.
To that end, I keep totally separate eclipse installations for different development tasks (one for Android, one for Python, etc.).
Rather than using one of the prescribed distributions (like "Eclipse for Java developers"), I always start with a PDE installation (i.e., basically no plugins). Then I add only the plugins that I need for the particular task.
I find that startup time, memory usage, and performance are a lot better. None of my environments require more than 200MB of RAM, even with lots of big projects open. Also, no need to mess with eclipse.ini.
As an added bonus, the PDE download is a mere 50MB, not 100-200MB for the standard distributions.

Related

Rubymine debugger slow

Rubymine 7.1 (build RM# 141.644) debugger on a rails 4.1.10 project is very slow. Rendering pages takes +12 seconds.
I've tried setting my JVM properties as described here but its still super slow. Here are my settings:
cat rubymine.vmoptions
-Xms1024m
-Xmx1024m
-XX:MaxPermSize=250m
-XX:+UseCompressedOops
Any other suggestions would be welcome. Thanks!
There's a slightly experimental release for OSX Yosemite that is quite a bit faster.
They say, "This alternative RubyMine 7.1 distribution bundles JDK 1.8 customized by the JetBrains team for better performance. Please note this non-default option may contain some issues."
https://www.jetbrains.com/ruby/download/

After upgrading to Eclipse Juno facing performance issues

After I have upgraded to Eclipse Juno
Eclipse Java EE IDE for Web Developers.
Version: Juno Release
Build id: 20120614-1722
I am facing following issues:
It takes ~5 mins to open eclipse.
If I try to clean a project it takes ~10 mins.
The following are the args that I have set
-vmargs -Xms256m -Xmx1024M -XX:MaxPermSize=512m
I have an 8GB RAM installed and I am using Windows 7.
Is there anything I can do about this issue? As during this period my system is stuck.
Thanks for your help.
This is a known issue. They have recently released a minor update (4.2.1) but much of the main issues with performance have yet to be addressed. If you read through that ticket you will see that there are a couple of things that can help speed things up immediately.
Switch to classic theme. Window > Preferences > General > Appearance > Theme switch to classic
On the same preference page disable animations.
I would add your name to the CC list and you can keep apprised of the improvements to performance. It seems that many of the performance issues (especially with the XML editor) will not be fixed until 4.2.2.

Very slow Eclipse 4.2, how to make it more responsive?

I'm using Eclipse PDT on a rather large PHP project and the IDE is almost unusable. It takes nearly 30 seconds to open a file, and other actions, like selecting a folder in the file explorer, editing some text, etc. are equally slow.
I followed various instructions to speed it up but nothing seems to work. This is my current eclipse.ini file. Any idea how I can improve it?
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20120522-1813
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-server
-Dosgi.requiredJavaVersion=1.7
-Xmn128m
-Xms1024m
-Xmx1024m
-Xss2m
-XX:PermSize=128m
-XX:MaxPermSize=128m
-XX:+UseParallelGC
System: Eclipse 4.2.0, Windows 7, 4 GB RAM
It looks like Eclipse in silence have created a fix and announced it in all secracy through their wiki (!). It seems to alleviate the problems for me at least; though I have not tested it in length yet.
See http://wiki.eclipse.org/Platform_UI/Juno_Performance_Investigation
Basically you should install the "Juno SR1 Patches/Eclipse UI Juno SR1 Optimization" from their 4.2 update site: http://download.eclipse.org/eclipse/updates/4.2
Bug-tracking for this optimization: https://bugs.eclipse.org/bugs/show_bug.cgi?id=394588
There are known performance issues with PDT 3.1 and eclipse 4.2 (juno).
https://bugs.eclipse.org/bugs/show_bug.cgi?id=385272
This is the solution:
Open a different perspective (for example java, but not php) and restart eclipse. Afterwards you can savely switch back to php perspective. Eclipse will have no performance issues.
Also mentioned here
Actually in looking at your machine configuration, you should make sure nothing else is going on in the machine and experiment with reducing your required memory, say something like -Xmx512m. If you are requesting too much heap space, then it's possible you are doing a lot of OS paging.
There is also a known bug which makes eclipse juno slow on some systems :
https://bugs.eclipse.org/bugs/show_bug.cgi?id=385272
A workaround seems to be to delete the workbench.xmi file.
From http://wiki.eclipse.org/Platform_UI/Juno_Performance_Investigation
Ensure you are already running on a package from the Juno SR1 release (September 2012)
Invoke Help > Install New Software
Select this repository: http://download.eclipse.org/eclipse/updates/4.2
Expand Juno SR1 Patches and install Eclipse UI Juno SR1 Optimizations
Worked for me
I was having similar issues with the Eclipse and the ARM emulator running. When I switched from tab to tab on Eclipse it would take 5 seconds for it to switch over and Eclipse would be in a "Not Responding" mode for a moment. I actually increased my heap memory on my eclipse.ini by using -Xmx1024m. It fixed the issue.
I had very big UI performance issues upon switching to 4.2 (using PDT) and after investigating for a while, I noticed it was due to... the PHP perspective. That doesn't make any sense, but I could confirm it on two different computers.
Try switching to another one (like, the Resource one), then restart Eclipse (last part is important).
Let me know if that helped.
I was having huge problems with performance (switching between editor windows was SLOW). I modified the eclipse.ini file to use -Xmx1024m rather than -Xmx512m and the performance is much better.
Update -- After a while I started noticing the fix above did not make my problems go away entirely. I did find another post above helpful. I install the Spring Source Toolsuite plugin and I believe that may be the source of the slowness. After installing the patch at the following link, Eclipse is running much more smoothly: http://wiki.eclipse.org/Platform_UI/Juno_Performance_Investigation
Eclipse 4.2 Service Release 2 was released a few days ago (1 Mar 2013. It is the result of the all of these investigations and the patches suggested previously.
Give it a shot!
Make sure you have turned off "show whitespace characters" on Linux.
(https://bugs.eclipse.org/bugs/show_bug.cgi?id=320595)
I'm using Eclipse 4.2.2 version for Developing android Apps. But its slow when coding my applications. (not XML graphical layout or Android Emulator)
I'm using NetBeans also, but it's working really well!
Specially I want to notify here I've added many more plugins to Eclipse and now I've uninstalled all of that. Now there is only ADT Plugin with Eclipse Base Plugins.
I've seen some best settings for speed up eclipse UI.
I want to know what's the best settings for my laptop.
Windows 8.1, 12 GB Ram.
at lastly sorry for posting here, I cant post any questions because I'm blocked.
I hope best solution from here.

IntelliJ vs STS (SpringSource Tool Suite), what am I missing by using one or the other and can I make them feature equivalent for comparsion?

I've been using STS (just started to use and learn it slowly) but some users here where I work use IntelliJ. I was wondering what exactly STS comes with that can make it better/easier to use vs. IntelliJ and vice versa. Also I was wondering if there are any plugins or ways to make IntelliJ feature equivalent to whatever could be possibly missing vs STS and vice versa so I can do an equal and fair comparison.
Thanks!
Edit,
I will say that STS takes AGES to load vs IntelliJ for some reason so if someone knows how to tweak STS to open faster I'd love to know. Even on this new MBP 15" with i7 and 4GB of ram it feels way too slow opening up and is excruciatingly frustrating when it hangs.
It's 2016 and STS has come a long way. I favor it over IntelliJ for many reasons. Some are Eclipse specific and others are pre-packaged with STS (but can be installed into an Eclipse distro).
The most valuable is the Quick Text Search. STS will index all the text in all files in your project. Ctrl+Shift+L opens the dialog and you can type any text in the bar. All occurences of the string instantly appear across all files.
I like the ability to organize imports in over IntelliJ and greatly favor the look and feel of the IDE. I've used Eclipse/STS for much longer than I have IntelliJ so I am a bit biased here.
The ability to natively handle different file types and frameworks is IntelliJ's greatest strength. I work on Grails projects from time to time and support for the latest and greatest with Grails is non-existent anymore within the Eclipse/STS family, whereas IntelliJ provides good support.
BTW: STS is free(!) whereas you can't even buy IntelliJ anymore. You merely lease the software for a year under their new subscription model.
Go to Window->Preferences->Validation
Uncheck what you don't need. That will speed up the loading a bit.
Modify eclipse.ini to set the Xmn(new generation size), Xms and Xmx, enable parallel GC
-Xmn128m
-Xms1024m
-Xmx1024m
-Xss2m
-XX:PermSize=128m
-XX:MaxPermSize=128m
-XX:+UseParallelGC
I used STS for around 2 years, and recently tried Intelij [Community] for spring web development.
I found IntelliJ much better in
performance
usability
features
Keyboard shortcuts save a lot of time (No need to use a mouse at all)
File formats supported
Debugging window
But web development and spring development is not supported in community version of Intelij, so you need enterprise version, which costs a lot [At least for Indian customers]
So, for spring development I always prefer STS and for other development (I work on Vertx as well) I prefer Intelij
I have used both STS and Intellij community edition.Here is my personal experience.
Intellij has more handy shortcuts than STS
Auto completion feature of intellij is awersome (not my priority)
Itellij has caching issues.(Major and critical). You may need to restart the IDE by clearing the cache. I have never faced such issues in STS.
Some provided plugins does not work at all (e.g Smart Tomcat).Where as STS never fails here.
I felt intellij slower than STS.
Every time I restart intellij it starts indexing which I really dont like.
When I try to import multiple projects each opens in separate windows.When you try to import as module certain configuration does not work.
All the above listed points are from my personal experince. One may disagree with this. As of now I would choose STS over intellij.

Eclipse optimized configuration for better performance

Can anyone give an optimized configuration for Eclipse Helios.
I am using XP,i3,3 GB Ram I work mostly on Eclipse and use few lightweighted application along with firefox.
Take a look at this answer for "optimized" eclipse.ini settings file for Eclipse Helios.