You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by ge...@yahoo.com on 2007/08/10 15:45:58 UTC

Tomcat Restarting

Hi everybody,

I would like to know what really happen when tomcat is
restarted. This is because I need to know the risks of
restarting during production time. 

I mean, if, for example, a servlet is running and
at that moment I restart, does tomcat will wait until
the jvm finishes and give the generated response or it
will just kill every running/pending jvm process? 

In fact, is there any risk about missing financial
transactions?

Thank you ;-)




      ____________________________________________________________________________________
¡Sé un mejor fotógrafo!
Perfecciona tu técnica y encuentra las mejores fotos.                       
http://mx.yahoo.com/promos/mejorfotografo.html

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat Restarting

Posted by David Delbecq <de...@oma.be>.
En l'instant précis du 10/08/07 15:45, gerocoma-forophp@yahoo.com
s'exprimait en ces termes:
> Hi everybody,
>
> I would like to know what really happen when tomcat is
> restarted. This is because I need to know the risks of
> restarting during production time. 
>
> I mean, if, for example, a servlet is running and
> at that moment I restart, does tomcat will wait until
> the jvm finishes and give the generated response or it
> will just kill every running/pending jvm process? 
>   
It first shutdown all applications then exit all http-thread.
During shutdown of application, it first make it unreacheable via http,
then call destroy on all servelt. It give time for currently running
requests to finish . I don't know if there is a timeout on this (like a
request taking 20 minutes to finish could be stopped).
> In fact, is there any risk about missing financial
> transactions?
>   
If you are using "transaction" nothing will be done prior to commit and
everything will be done after comit. It's atomic (the principle of a
transaction) and not handle by java (its your database that is
implementing 2 steps commits).
> Thank you ;-)
>
>
>
>
>       ____________________________________________________________________________________
> ¡Sé un mejor fotógrafo!
> Perfecciona tu técnica y encuentra las mejores fotos.                       
> http://mx.yahoo.com/promos/mejorfotografo.html
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>   


-- 
http://www.noooxml.org/


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org