tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Warnier ...@ice-sa.com>
Subject Re: Tomcat stops suddenly without any errors
Date Fri, 19 Mar 2010 11:23:30 GMT
siranjeevi krishnan wrote:
> Hi All
> 
> I am using Tomcat 6.0.18. It's running fine for past two months.
> Suddenly it stops and i couldn't find any errors.

It would probably help if you mentioned on which platform this happens, 
and if it is a Windows system, if Tomcat is running as a Service or 
otherwise.

> 
> The messages i got in catalina .log are
> 
> Mar 16, 2010 5:48:00 PM org.apache.catalina.core.StandardService stop
> INFO: Stopping service Catalina
> Mar 16, 2010 5:48:00 PM org.apache.catalina.core.ApplicationContext log
> INFO: Closing Spring root WebApplicationContext
> Mar 16, 2010 5:48:02 PM org.apache.catalina.core.StandardWrapper unload
> INFO: Waiting for 1 instance(s) to be deallocated
> Mar 16, 2010 5:48:03 PM org.apache.catalina.core.StandardWrapper unload
> INFO: Waiting for 1 instance(s) to be deallocated
> Mar 16, 2010 5:48:04 PM org.apache.catalina.core.ApplicationContext log
> INFO: Closing Spring root WebApplicationContext
>

That looks like a nice orderly shutdown.

> This is the second time i am facing this issue. There is no out of
> memory errors.
> 
> Nobody can access my box and there is no way for explicit shutdown.
> 
> In what scenarios , tomcat will stop gracefully without any errors.
> 
As far as I know, only when it is told, gracefully, to stop.
With an OOM or any other error, you would either not have any messages, 
or a lot of ugly ones.

But if it was running under Windows as a Service for instance, a "net 
stop Tomcat6" would be one way.
In that same case, a network sysadmin could also do this remotely.
Any local process connecting to port 8005 and writing the string 
"SHUTDOWN" to it would also do that.
A web application running within Tomcat and doing a "system.exit()" 
/may/ also do that, though I don't know if then you would have a nice 
orderly shutdown as per above.


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


Mime
View raw message