Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way in Eclipse to determine what is eating CPU time?

I am using Eclipse for Java development. I have a number of plugins (Maven, Subversive, JBoss reverse Engineering tools, etc), and the system seems to hang fairly consistently, to the point where it can be 10-20 seconds from a mouse click until it responds. I have given it a gig of memory in the configuration, and it is not even using half of that. When it hangs, it completely pegs one of the processors, and I see large numbers of Page File Deltas.

Is there any way to see what is happening inside Eclipse? Which plugin could be causing the problem?

I believe (although I am not positive) I am running Eclipse 3.5.2. I am running on Windows XP, SP 2 or 3 (I do not manage the machine, my company does, so I am not positive how up to date it is).

like image 293
aperkins Avatar asked Dec 02 '10 19:12

aperkins


People also ask

How do I make Eclipse use less memory?

Close unused projects, close unused perspectives and views. This is a basic to lower memory usage. You can also configure eclipse. ini to use lower amount of memory and use garbage collection more often, but this can make ide not response very well, because of first statement in this answer, I mean large project.


1 Answers

First, the one plugin that can help investigation this would be MAT (Memory Analyzer).
Full tutorial at Vogella.

Second, make sure to use an optimized eclipse.ini launched with the latest JDK (6u22) and check if the issue persists then.

like image 159
VonC Avatar answered Sep 23 '22 01:09

VonC