On Wed, 14 Aug 2002, Samuel Cheung wrote:

> Date: Wed, 14 Aug 2002 14:25:14 -0500
> From: Samuel Cheung <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: 'Tomcat Users List' <[EMAIL PROTECTED]>
> Subject: Run away servlet in Tomcat
>
> Hi,
>
> How does Tomcat handle a run away servlet? (I mean tomcat gets a request, it
> call a servlet to handle it,  that servlet stuck in an infinite loop)
>

Tomcat doesn't deal with this situation.

> Can tomcat still handle new requests to same/other servlet?

Sure, although ultimately the competition for CPU time is going to have
adverse effects on response time.

>  Can we config
> tomcat to kill certain request if it does not finish execution within a time
> period?

You'll have to arrange for that yourself, by starting a background
"watchdog timer" thread or something.  Tomcat doesn't have anything like
that -- it assumes that you've programmed your servlets correctly.

>
> Thank you.
> Sam

Craig


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to