使用Eclipse IDE以调试模式加速Tomcat
通过eclipse运行Tomcat在非调试模式下工作正常,但不在调试模式。当我尝试在调试模式下启动Tomcat服务器时,控制台输出看起来很好一段时间,但随后开始变慢,最终停止,将cpu与100%挂起。我不认为这是相关的,但是为了防万一 - 这是控制台输出正确的关于何时开始减速,最终停止(停止我的意思是没有更多的控制台输出,但仍然是100%cpu)。
Running Tomcat through eclipse works fine in non-debug mode, but not in debug mode. When I try to start the Tomcat server in debug mode, the console output looks fine for a while, but then starts slowing down and eventually just stops, pegging the cpu at 100%. I don't think it's relevant, but just in case - here's the console output right about when it starts slowing down and eventually stopping (by stopping I mean no more console output, but still 100% cpu).
2009-09-02 14:35:30,859 INFO NONE org.springframework.context.weaving.DefaultContextLoadTimeWeaver:72 - Found Spring's JVM agent for instrumentation
2009-09-02 14:35:49,562 INFO NONE org.springframework.beans.factory.support.DefaultListableBeanFactory:414 - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@ed889d: defining beans [...
2009-09-02 14:37:31,031 INFO NONE org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean:221 - Building JPA container EntityManagerFactory for persistence unit ...
我尝试了一切可以解决的问题:
I tried everything I could think of to fix it:
- cleanesd tomcat工作目录
- 重新启动eclipse
- 重新启动Windows
- 刷新/清除所有项目
- cleanesd tomcat working directory
- restarted eclipse
- restarted Windows
- refreshed/cleaned all projects
我第一次有这个上个月使用eclipse ganymede的问题。在这个问题之前,我已经在调试模式下运行好几个月了。我没有对我们的项目做出任何重大改变,这将导致这一点。最终,我升级到eclipse galileo,解决了我的问题。 2天后,我在galileo中遇到同样的问题。就像我说的,它在非调试模式下工作正常。任何帮助都是非常感激的。
I first had this problem last week using eclipse ganymede. I had been running fine in debug-mode for several months prior to this issue. I didn't make any significant changes to our project that would cause this. Eventually, I upgraded to eclipse galileo which solved my problem. Now 2 days later, I'm having the same problem in galileo. Like I said it works fine in non-debug mode. Any help is much appreciated.
我应该添加其他的东西在调试模式下工作 - 例如junit测试,所以它是特定于tomcat的东西。
I should add that other things work in debug mode - for instance junit tests, so it is something specific to tomcat.
我遇到了这个问题!一旦我想出来,我记得以前发生过。我清除了所有的断点,并且工作正常。我不知道为什么会导致结果是,但它的作品。
I've gotten through the issue! Once I figured it out, I remember that this has happened before. I cleared all my breakpoints and it works fine. I have no idea why that would cause the outcome that is does, but it works.