2

I've been developing a Java web application for my internship with Eclipse and all has been going well until this afternoon.

Randomly one of the times when I chose to debug on server (Apache Tomcat v7) it took 30 seconds as opposed to the usual 3-5 seconds. I undid my changes to no avail thinking that I had just done something really inefficiently(I had changed all the structures of my Hibernate mappings) and it still didn't resolve the issue. I also tried removing and re-adding the server several times.

Though, the funny thing is when I choose run on server it still runs it in like 3-5 seconds.

Thanks in advance for whatever help anyone can offer.

4

1 回答 1

1

尝试清除所有以前的调试线程,或者在无断点模式下进行调试,有时调试线程会进入睡眠状态。这不是一个高效的代码案例。尝试关闭您的调试日志,在控制台上打印所有调试日志也需要几秒钟。此外,您也可以尝试删除您的日志,因为与较小的文件相比,写入繁重的日志文件需要时间。

于 2014-01-20T17:57:37.190 回答