views:

214

answers:

2

OS X 10.5.6.

My Eclipse 3.4 is going crazy lately.

After innocent operations like typing text or moving some files in Navigator view or saving, it sometimes starts "waiting on background operation", and eats one CPU core, shuffling back and forth tens of megabytes of memory.

I suspect some of plug-ins went rogue.

How can I find which one it is (except for binary search)?

+1  A: 

That's a tough and often impossible goal, I've faced this problem several times.

I generally follow the following process:

1) Open the progress view and see if there is anything listed in it; in some cases, a non-system job is creating the problem and it is actually named. If nothing pops up here, it may be a job tagged as system (to hide it), or something that doesn't even run as a job (even worse)

2) Use the show heap under the general preferences, to try and spot if heap size jumps. By default, Eclipse runs with not enough JVM Heap Space, and once it hits its limit, it will start churning even if no plugin is at fault and get stuck.

3) Create and run a debug version of the workspace and try to reproduce the problem, and at that point break the program from the other Eclipse and see what threads are active. Unfortunately, most threads are not identified with the spawning plugin which really sucks.

4) Unfortunately, start wasting time on a search.

Uri
+2  A: 

You can also try to start your eclipse with the

-Dcom.sun.management.jmxremote

option.

And then launch

C:\[jdk1.6.0_0x path]\bin\jconsole.exe

As said in this question about eclipse memory. You will be able to monitor a lot of runtime details, provided you are launching your eclipse with a 1.6 JVM.

Try also those settings and check if your problems persist with them.

VonC