Laszlo B
Laszlo B

Reputation: 455

Eclipse Luna debug slow only up to the very first breakpoint

Reading through Eclipse debug topics I did not find an answer to my specific problem. I wonder if anybody else has seen it. I only experience this since switching to Luna, I used Kepler and Indigo before.

I usually debug Tomcat, but it happens for any one-class test app. When the app hits the first breakpoint, Debug view is shown, then I have to wait 20-30 seconds for the debugger to initialize, and only then is the code line highlighted in the editor. From that point on every break is immediate. Other kind of slowness is not experienced. In Tomcat any subsequent request stops quickly. The problem is that it's restarted often when hot code replacement is not feasible.

Anybody knows how to tweak it? There is no building or validating process going on at that time, and I tried to allocate various amounts of memory to Eclipse. -Xms256m, -Xmx2048m usually works very well for me.

Upvotes: 15

Views: 5425

Answers (4)

Laszlo B
Laszlo B

Reputation: 455

My issue was fixed in Luna SR1.

Upvotes: -2

user2963838
user2963838

Reputation: 21

Clearing all breakpoints worked for me too. Probably it was because of that breakpoint in jar files it would be taking more time for generating line numbers for those files.

Upvotes: 2

Kanjarana
Kanjarana

Reputation: 51

I found this post trying solve my issue: Very very slow to initialize tomcat, hibernate, etc. If you fall down here for similar problem I would suggest you what resolved to me. Try:

  • Clear all breakpoints, mainly those in API's, clear expressions too.

That's what worked for me.

Upvotes: 0

jspring
jspring

Reputation: 21

I don't know how to tweak it, but in experiencing the same problem I found an Eclipse bug ticket already created for this along with duplicates: 440470 (https://bugs.eclipse.org/bugs/show_bug.cgi?id=440470).

Starting Eclipse with "-consolelog -debug" hasn't showed any additional errors related to this.

I am working with a large core Java project and have also installed EMF (Eclipse Modeling Framework) and GEF (Graphical Editor Framework) plugin packages and dependencies via update site. I have installed these in previous versions of Eclipse without the debug delay issue. I tried closing this project and created a new test project with a simple Java class. There was no delay when debugging this class.

Upvotes: 1

Related Questions