You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Turner, John" <JT...@AAS.com> on 2003/02/06 15:36:58 UTC
RE: Shutdown.sh does not work when long lasting operations, such
as SQL Queries, are still active!
I think what you want to do is add/write a Listener that will look for the
shutdown event and kill the threads and take other actions as appropriate.
But, I'm no developer, so others might have better solution.
John
> -----Original Message-----
> From: Andreas.Niehwoehner@arcor.net
> [mailto:Andreas.Niehwoehner@arcor.net]
> Sent: Thursday, February 06, 2003 8:33 AM
> To: tomcat-user@jakarta.apache.org
> Subject: Shutdown.sh does not work when long lasting
> operations, such as
> SQL Queries, are still active!
>
>
> Currently we are running a web application on AIX 4.3.3.0
> with ibm jre 1.3.1 and
> tomcat 4.0.3 final.
> When trying to shutdown the tomcat server by means of
> shutdown.sh, we encounter
> the following problem:
> The shutdown script is executed properly but the tomcat
> server does not
> terminate. In my opinion this is
> caused by long lasting operations within the http processor
> threads. In other
> words, when we have sql
> queries or queries against other backend systems, like
> Content Manager (CM) or
> Enterprise Information Portal (EIP),
> the tomcat server does not shutdown the context and call the
> destroy method
> until all http processor threads
> have terminated.
>
> Is there a possibility to speed up the shutdown procedure, so
> that tomcat does
> not wait for active threads to come back?
> If not is it a feasible solution to wrap long lasting
> operations in extra
> threads and implement a time-out by means of the
> Thread.join(long millis) function within the http processor
> threads? Does
> starting extra threads within the http processor
> threads impose a problem to the runtime behavior of the tomcat server?
>
>
> Thanks in advance,
>
> Andreas
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org