You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by siranjeevi krishnan <si...@gmail.com> on 2010/03/19 11:57:45 UTC

Tomcat stops suddenly without any errors

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.

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

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.

Thanks for your help

Thanks
Siranjeevi

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


Re: Tomcat stops suddenly without any errors

Posted by siranjeevi krishnan <si...@gmail.com>.
Hi Charles

Thanks for your reply.

I understood that if the thread is killed, tomcat will stop.
In my case, there is no explicit killing of thread. Only after
graceful stop of tomcat, this thread got killed.

Thanks
Siranjeevi


On Fri, Mar 19, 2010 at 10:23 PM, Caldarale, Charles R
<Ch...@unisys.com> wrote:
>> From: siranjeevi krishnan [mailto:siranjeevik@gmail.com]
>> Subject: Re: Tomcat stops suddenly without any errors
>>
>> I am starting tomcat under a thread inside another JVM by calling
>> Bootstrap.main("start");
>
> You're not running Tomcat in "another JVM" - it's running in the same one your thread is running in.  If you don't keep that thread alive, the JVM will shutdown, taking Tomcat with it.
>
>  - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

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


RE: Tomcat stops suddenly without any errors

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: siranjeevi krishnan [mailto:siranjeevik@gmail.com]
> Subject: Re: Tomcat stops suddenly without any errors
> 
> I am starting tomcat under a thread inside another JVM by calling
> Bootstrap.main("start");

You're not running Tomcat in "another JVM" - it's running in the same one your thread is running in.  If you don't keep that thread alive, the JVM will shutdown, taking Tomcat with it.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


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


Re: Tomcat stops suddenly without any errors

Posted by siranjeevi krishnan <si...@gmail.com>.
Hi Warnier

Thanks for your help.

I am running tomcat in Windows platform.
I am starting tomcat under a thread inside another JVM by calling
Bootstrap.main("start");

Thanks
Siranjeevi

On Fri, Mar 19, 2010 at 4:53 PM, André Warnier <aw...@ice-sa.com> wrote:
> 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
>
>

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


Re: Tomcat stops suddenly without any errors

Posted by André Warnier <aw...@ice-sa.com>.
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