Adam Sznajder
Adam Sznajder

Reputation: 9206

Very slow debugging in Eclipse

I try to debug Jonas webapp under Eclipse. Unfortunately when I connect to the remote application everything works terriblly slow (also after killing all java applications and restarting the PC). I use also JRebel. What might be the cause of such behaviour?

Upvotes: 4

Views: 6890

Answers (3)

Daniel Reis
Daniel Reis

Reputation: 960

Recently i was having extreme slow performance debug, both in eclipse and visual studio code.

In my case, the problem was with lombok configuration in JPA entities.

I changed the @Data anottation to @Getters and @Setters.

Looks like hashCode() and equals() implementantion of lombok was in conflict with JPA.

Upvotes: 0

km1
km1

Reputation: 2443

You could also try using the Java Monitoring and Management Console. This may help show where the "slowness" is. Keep an eye on the garbage collector and how much time the JVM is spending dowing garbage collection.

http://docs.oracle.com/javase/6/docs/technotes/guides/management/jconsole.html

Upvotes: 2

Adam Sznajder
Adam Sznajder

Reputation: 9206

I changed values of -XX:MaxPermSize, -Xms and -Xmx parameters in eclipse.ini and it helped.

Upvotes: 1

Related Questions