For that feature to be useful, you would need to be able to over-ride it
in an individual servlet or JSP.  Many other server scripting languages like
ASP have a scripting timeout feature similar to this that would prevent
something like an endless loop from forever consuming server resources.

This sounds more like an enhancement to the Servlet spec.  I'm sure it must
have been discussed over at Sun's JCP.


Dave


----- Original Message -----
From: "Chaber, Eric" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 26, 2001 11:25 AM
Subject: RE: How to give timeouts to threads ?


> For me a timeout you can put in server.xml would be enough :-)
>
> -----Original Message-----
> From: David Frankson [mailto:[EMAIL PROTECTED]]
> Sent: September 26 2001 16:49
> To: [EMAIL PROTECTED]
> Subject: Re: How to give timeouts to threads ?
>
>
>     A ctrl-break  thread dump will show you which threads are hung.  The
> solution is to fix the sloppy servlet that causes it.  I used to have
major
> stability problems with Tomcat until I discovered the problems in my own
> code.
>
> Killing errant threads would be a cool feature, but is it possible?  I
would
> think that it would be difficult to determine which threads are hanging
due
> to programmer error.
>
> Dave
>
> ----- Original Message -----
> From: "Christof Soehngen" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, September 26, 2001 9:52 AM
> Subject: Re: How to give timeouts to threads ?
>
>
> > > But I hope somewhere we can specify tomcat to give timeout to these
> > > everlasting threads.
> >
> > Furthermore it seems to me that some of these thread can crash Tomcat?
> >
> > If someone has information about this, im desperately seeking info about
> > this ... Thanks in advance
> >
> > Christof
> >
> >
>

Reply via email to