Debug Mode timeout Tomcat

11,780

Solution 1

Figured out the reason. If we have too many breakpoints the debug mode strangely takes too much time to start. Disable all the breakpoints and start in debug mode, when started enable the breakpoints as needed.

Solution 2

Could it be waiting for you to connect?

The docs say to type:

-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n

but if you typed suspend=y, it would wait forever eventually timing out.

Share:
11,780
Global Warrior
Author by

Global Warrior

Developer, into the wild

Updated on June 07, 2022

Comments

  • Global Warrior
    Global Warrior almost 2 years

    I try to start my Tomcat in debug mode but it throws the following error:

    Server Tomcat v7.0 Server at localhost was unable to start within 45 seconds. If the server requires more time, try increasing the timeout in the server editor

    I even tried to update the timeout time but it still gets timed out. But, when I try to start the tomcat (in non debugging mode) it starts normally. Any idea what might be causing problem?

  • vadim
    vadim over 10 years
    +1 Your solution worked for me as well. Thank you for sharing it.
  • Smrita
    Smrita about 10 years
    Thank you for sharing.You saved my time:)
  • Gruber
    Gruber about 10 years
    @Global Warrior: Thanks, worked for me too, despite only having five breakpoints. Incredible bug. And I don't understand why this question is closed.
  • StudioWorks
    StudioWorks over 9 years
    I had only two breakpoints but they were "Java Exception Breakpoints". Visitors be warned. Thanks.
  • blackcatweb
    blackcatweb about 8 years
    This worked for me, too, but I had only 4 breakpoints, and have had many more than that in the past. shrug
  • pidabrow
    pidabrow over 6 years
    Well, I set up my workspace yesterday and since then I've made three breakpoints. Once I removed them all, it suddenly started to work. So maybe the problem is not related to the number of breakpoints but to breakpoints in general.