Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find out what Eclipse is doing in background?

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)?

like image 849
Alexander Gladysh Avatar asked Jan 04 '09 20:01

Alexander Gladysh


People also ask

How do I stop background operations in Eclipse?

You must use Task Manager (Alt+Ctrl+Del on Windows) for kill process. Go to tab Processes, find process javaw.exe * and click End Process. The result: frozen process in Eclipse was closed but your Eclipse wasn't closed.

How do I make Eclipse background black?

To change the color theme in your editor: Go to Window | Preferences | General | Appearance | Color Theme. The list of available Eclipse color themes is displayed.


2 Answers

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.

like image 89
VonC Avatar answered Sep 28 '22 16:09

VonC


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.

like image 35
Uri Avatar answered Sep 27 '22 16:09

Uri