How can I disable the eclipse server startup timeout?

Viewed 61232

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?

8 Answers

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!

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

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

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.

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.

Related