Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 121593

Summary: All server configurations need timeout options the user can override.
Product: [WebTools] WTP ServerTools Reporter: Scott Delap <scott>
Component: jst.serverAssignee: Angel Vera <arvera>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: arinfein, daniloesk-eclipse, danny.ju, deboer, eyuen7, gorkem.ercan, gregoire.seguin, leo, paul_galbraith
Version: 1.0   
Target Milestone: 3.0 M3   
Hardware: Macintosh   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Attachments:
Description Flags
timeout per server enhancement none

Description Scott Delap CLA 2005-12-20 12:41:14 EST
I've been attempting to use WTP on an admittedly slow OS X powerbook the last few days.  Almost all the server configurations I've tried timeout with no option to wait.  I've had to manually hack the plugin.xml to be able to use WTP.  Preferences should be available to override the timeout for each server configuration.
Comment 1 Tim deBoer CLA 2005-12-20 13:35:59 EST
Have you tried changing the setting under Window > Preferences > Servers? You can globally change the length of all timeouts based on your computer speed.
Comment 2 Scott Delap CLA 2005-12-20 13:43:21 EST
You mean the slow, medium, fast ( or something like that option?  Yep tried that.  I'll admit the machine I've been testing things on is a little slow but if you had a robust J2EE server startup that had to initialize clustering, multiple db connections etc, you'd also run into the same issues.  A hard X seconds which you could specify 300 or something would be nice.  I've also found that clicking the X on the dialog box instead of explicitly saying ok on the timout error will let the server keep going in some cases.  That seems like a bug/feature =).
Comment 3 Paul Galbraith CLA 2006-01-29 16:37:43 EST
(In reply to comment #1)
> Have you tried changing the setting under Window > Preferences > Servers? You
> can globally change the length of all timeouts based on your computer speed.
> 

Specifying short/normal/long etc. doesn't seem to make any difference at all, at least for a WebLogic 8.1 configuration, the timeout value seems to come only from org.eclipse.jst.server.generic.serverdefinitions_1.0.0/plugin.xml; having this value more easily configurable would be very useful.
Comment 4 Gorkem Ercan CLA 2006-02-11 14:17:38 EST
*** Bug 126950 has been marked as a duplicate of this bug. ***
Comment 5 Danilo Esk CLA 2006-06-06 15:38:44 EDT
So far (up to JST SDK 1.0.1.v200602130105) I was able to make it work by changing the timeout directly in the plugin.xml, but since JST SDK 1.0.2.v200604280000 that stopped working. No matter what I do, the timeout sticks to the original 75000ms.

I tried recreating the server configuration and using a brand new workspace, but nothing worked.

Going back to the 1.0.1 version turned everything back to normal.
Comment 6 Tim deBoer CLA 2006-07-11 14:27:52 EDT
I finally realized that the server timeout preference was no longer being used, and this is being fixed for 1.5.1 and 2.0 via bug 150090.

The preference allows you to change the overall startup timeouts from about 1/2 to 2x the standard timeouts, to allow for machine differences. Does that cover the requirements of this bug for your use cases? Should the range be expanded? Or should this bug be used as an enhancement request for specific timeout values per server instance or per server type?
Comment 7 Paul Galbraith CLA 2006-07-11 16:12:06 EDT
(In reply to comment #6)
> The preference allows you to change the overall startup timeouts from about 1/2
> to 2x the standard timeouts, to allow for machine differences. Does that cover
> the requirements of this bug for your use cases?

Basically, no.  It would be far more convenient to simply allow for a precise configuration, in seconds.  short/long/longer/normal, etc., is not going to have any understandable meaning for most people, forcing them to resort to trial & error to try to reverse engineer the meaning of these terms, and these terms will never cover a broad-enough or precise-enough spectrum.

Comment 8 Danilo Esk CLA 2006-07-18 10:06:54 EDT
(In reply to comment #6)
> The preference allows you to change the overall startup timeouts from about 1/2
> to 2x the standard timeouts, to allow for machine differences. Does that cover
> the requirements of this bug for your use cases? Should the range be expanded?
> Or should this bug be used as an enhancement request for specific timeout
> values per server instance or per server type?
> 

I believe the timeout should be the last one (specific values per server instance). The main reason is because the time necessary to start a server depends on the applications it needs to start, not only on the server type. If a large application or many small applications are installed on a server, the time necessary is *not* relative to the server type.
Comment 9 Eclipse Webmaster CLA 2007-07-29 09:18:40 EDT
Changing OS from Mac OS to Mac OS X as per bug 185991
Comment 10 Tim deBoer CLA 2007-10-14 17:30:12 EDT
Reassigning to Angel since he'll be looking at the timeouts for 3.0.
Comment 11 Angel Vera CLA 2007-10-23 10:47:48 EDT
*** Bug 205997 has been marked as a duplicate of this bug. ***
Comment 12 Angel Vera CLA 2007-10-23 10:55:37 EDT
Created attachment 80960 [details]
timeout per server enhancement

I have completed this enhancement, and there will now be a start and stop timeout value that users can modify. The settings will be per server
Comment 13 Angel Vera CLA 2007-10-23 19:51:20 EDT
*** Bug 181845 has been marked as a duplicate of this bug. ***
Comment 14 Tim deBoer CLA 2007-11-01 14:11:28 EDT
Released to the weekly 3.0 M3 build. Thanks Angel!
Comment 15 Tim deBoer CLA 2008-02-28 14:24:45 EST
Verified, closing.