How can I disable the eclipse server startup timeout?

EclipseEclipse Wtp

Eclipse Problem Overview


By default when using a webapp server in Eclipse Web Tools, the server startup will fail after a timeout of 45 seconds. I can increase this timeout in the server instance properties, but I don't see a way to disable the timeout entirely (useful when debugging application startup). Is there a way to do this?

Eclipse Solutions


Solution 1 - Eclipse

enter image description here In Eclipse Indigo, you can edit the default timeout by double-clicking on the server in the "servers" view and changing the timeout for start (see graphic). Save your changes, and you're good to go!

Solution 2 - Eclipse

  1. On the EclipseIDE, double click on the server
  2. Admin panel opens up, click on the "Timeouts" tab
  3. Put larger value in the "Start (in seconds)", may be 1800
  4. Restart/Start the server

If everything is okay, the server should start.

Solution 3 - Eclipse

Just another data point. If you see in your Console "Server startup in NNN ms", but the Server view still shows that it is trying to start, and then times out eventually killing the server, it might be that you have no plain HTTP connector configured. For example, if you have only a 2-way SSL connector configured in your Tomcat, it will start fine with the scripts in "TOMCAT_HOME/bin", but if you try to start it with the Eclipse Server view, it won't be able to open a connection to the HTTP port, and will terminate when it hits the timeout. (This was with a fairly old STS 2.1.0. Don't know if it's fixed in later versions)

Joe

Solution 4 - Eclipse

Julie's answer gives you a long timeout, but not unlimited. You can move the server configuration file to the workspace, and then edit the xml file directly and set a limit greater than 1800. It's an ugly hack, but should work. alt text

Solution 5 - Eclipse

Goto Window > Preferences > Server

Set 'Server timeout delay' as Unlimited from drop-down menu.

or

Goto $WORKSPACE/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.wst.server.core.prefs

Add/update line machine-speed= -1

here, -1 ~ Unlimited

Solution 6 - Eclipse

yes this works, but the maximum limit is 1800, which is 30mins.

Sometimes when rebuilding our entire database (on server initial start) this can go for longer than 30mins and causes problems.

Solution 7 - Eclipse

If you still has issue after changing timeout settings, then it's best to remove the server configuration in Eclipse (in Server view tab) and re-create it again.

Server --> New Server.

It worked for me.

Solution 8 - Eclipse

In eclipse 2019-09 (4.13.0) there is no UI capability to set an unlimited value. It must be between 1 and 84600 seconds (a day).

But if you edit the .metadata/.plugins/org.eclipse.wst.server.core/servers.xml file in the workspace and set the server's start-timeout attribute to a large number of in my case -1 it will not abort the server startup until such time is reached. I had to restart eclipse for the change to be read.

NOTE: using the UI to edit other values will coalesce your value to a value within the allowable range.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionSeth WeinerView Question on Stackoverflow
Solution 1 - EclipseJulieView Answer on Stackoverflow
Solution 2 - EclipseVishal KumarView Answer on Stackoverflow
Solution 3 - EclipseJoeView Answer on Stackoverflow
Solution 4 - EclipseYoniView Answer on Stackoverflow
Solution 5 - EclipseAmiteshView Answer on Stackoverflow
Solution 6 - EclipseTom RomanoView Answer on Stackoverflow
Solution 7 - EclipsegarikapatiView Answer on Stackoverflow
Solution 8 - EclipseJason PyeronView Answer on Stackoverflow