Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Debug Mode timeout Tomcat [closed]

Tags:

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?

like image 780
Global Warrior Avatar asked May 28 '12 11:05

Global Warrior


People also ask

How do I know if Tomcat is running in debug mode?

A simple way to see if Tomcat is running is to check if there is a service listening on TCP port 8080 with the netstat command. This will, of course, only work if you are running Tomcat on the port you specify (its default port of 8080, for example) and not running any other service on that port.

What is the default connection timeout for Tomcat?

The default value is 60000 (i.e. 60 seconds) but note that the standard server. xml that ships with Tomcat sets this to 20000 (i.e. 20 seconds). Unless disableUploadTimeout is set to false , this timeout will also be used when reading the request body (if any).

How does session timeout work in Tomcat?

The default value of session-timeout set for Apache Tomcat Web /server is 30 minutes specified between the starting and ending element of <session-timeout > element inside the web.


1 Answers

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.

like image 128
Global Warrior Avatar answered Sep 19 '22 12:09

Global Warrior