tags:

views:

4442

answers:

9

I am using eclipse 3.5 (cocoa build) on Macos 10.5 with Java 1.5.0.19.

I just have 3 java files opened 1 files ~ 2000 lines the other 2 are ~ 700 lines.

But when I switch from 1 file tab to another, eclipse takes a long time (~ 20 seconds) to switch to another tab.

I have already change the eclipse.ini to

more eclipse.ini
-startup
../../../plugins/org.eclipse.equinox.launcher_1.0.200.v20090520.jar
--launcher.library
../../../plugins/org.eclipse.equinox.launcher.cocoa.macosx_1.0.0.v20090519
-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=512m
-Xms128m
-Xmx1024m
-Xdock:icon=../Resources/Eclipse.icns
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts

Is there any way to make eclipse 3.5 more speedy?

Thank you.

A: 

This is an known issue. Since you are using JDK1.5, you can try the Carbon variant.

J-16 SDiZ
I thought Cocoa is a better version than Carbon?And is there a Java 6 JDK for MacOS X? If yes, can you please tell me where can i find it?
n179911
Eclipse in Cacoa is new -- still somewhat buggy.
J-16 SDiZ
JDK 6 in Mac is 64-bit only, see http://support.apple.com/downloads/Java_for_Mac_OS_X_10_5_Update_4
J-16 SDiZ
This is a known issue? Know to whom? Get the final Galileo release for Cocoa. It is less buggy then the Carbon implementation ever was (or ever will be).
zvikico
zvikico: Search in google, it is known as early as 3.5M3... and, How 3.5 not final Galileo?
J-16 SDiZ
Same thing here. Performance degraded after a week. Is there any filed bug at eclipse bugzilla?
tuler
+3  A: 

Go with the 32-bit Cocoa release. The 64-bit won't help IMHO. It really works great on my 2.4 GHz MBP. I usually have about 30 files open, some fairly large, never experienced what you describe.

Try to get a new plain-vanilla 32-bit Cocoa distro, don't modify anything and check if there's an issue. It could be a rogue plugin, too. Do you have any installed?

Check you heap status. Open the Eclipse preferences, in the very first preferences page there's a "show heap status" option. You might be running low on memory. Check the swap status of your machine using the activity monitor - if it swaps a lot I'd recommend shutting down other applications. In general, I recommend 4 GB RAM for development machines.

zvikico
Thanks for this! I assumed that x86_64 build would be faster, but 32 bit (Cocoa) is much much faster. This combined with Mike Miller's suggestion has changed Eclipse on the Mac from tolerable to delightful for me (using Helios on '10 MBP).
r00fus
+2  A: 

Switching to 1.6 helped! Thanks.

Jose de Castro
A: 

Can you provide a link to the bug report. I have run into the same issue. Switching tabs takes forever now.

+15  A: 

I switched this line in the eclipse.ini file (found inside the eclipse application package):

-Dosgi.requiredJavaVersion=1.5

to

-Dosgi.requiredJavaVersion=1.6

and tab switching was speedy again.

Mike Miller
A: 

This might be the bug that was referred to. https://bugs.eclipse.org/bugs/show_bug.cgi?id=282229

Jeff
A: 

I experience the same issue using OS X 10.5.7 and Eclipse 3.5.2 on a fairly low end machine (early 2006 iMac with 1.5GB). Right after I start my machine however, everything is really snappy. I can even launch JBoss AS and there is still no slow-down. I monitor "Swap used" in activity monitor, and it stays at 0 bytes swap used.

Then, I launch something else, like iTunes and mail or switching to another account.

Things become slow then, which is expected, and I see "Swap used" increasing. Eclipse slows down to a crawl, and working with it is near to impossible.

Then I logout the other account, close down all other apps that I opened, so the state of my machine is basically the same again as when it was still fast. BUT... it stays dog slow! Even though I closed all the other apps, "Swap used" in activity monitor only decreases a little (from ~1.2GB to ~700MB). Just switching tabs between 2 very simple Java files takes up to 20 seconds, meanwhile I see in activity monitor that the CPU usage goes up to a solid 100%.

There definitely is something strange going on here. This does not seem like normal behavior. It is as-if Mac OS X goes into a 'slow mode' when I demand too much resources from it, but when the resources are there again it fails to recover.

Highly annoying!

If I reset the machine and open the exact same working set again (Eclipse with the same 2 files open, JBoss AS started in debug mode, Safari with 1 window) everything is really fast again.

arjan
A: 

switching to 1.6 really helps. This is the link to locate eclipse.ini file for mac http://wiki.eclipse.org/Eclipse.ini

jimmy
A: 

I can now more or less confirm that the problem is really with Eclipse 3.5.

I've run Eclipse on a much more powerful Mac, a 27" core I7, 2.93Ghz with 8GB ram and a SSD running OS X 10.6.4. Initially this was extremely smooth and snappy, but after an up time of a dozen hours or so, Eclipse suddenly began to slow-down again. I had very little to almost nothing running in the background. Just Eclipse (32 bits, given it 1.5GB memory), JBoss AS and Safari.

A simple tab switch would take a few seconds and meanwhile I noticed the CPU load on one core going to 100%. The same happened with switching perspectives and various other operations.

When I restarted only Eclipse, everything was completely fast again. This happened a couple of times.

arjan