Thanks, your response

I found the problem why tomcat unexpectly shutdown.it is not a
system.exit() method and kill command and shutdown port

The problem is that the opertator using his own script to start tomcat.

the script is like this

=================================
#!/bin/bash
./tomcat_path/bin/startup.sh
tail -f /tomcat_path/logs/catalina.2013-12-19.log

=================================

tomcat shutdown normally progress when the operator excuete a script and
close the terminal window that he excueted  (terminal is secureCRT, putty,x
Xshell)

"The Ctrl + c" input is not a shutdown condition, but close the terminl
unexpectly shutdown the tomcat.

why this script cause the shutdown problem?

thanks anyway





2013/12/17 Daniel Mikusa <dmik...@gopivotal.com>

> On Dec 16, 2013, at 11:53 PM, 박원석 <jjomac...@gmail.com> wrote:
>
> > Hello, I'm operating some services under this environment.
> >
> > OS : RHEL 6.2
> > JVM : 1.6.0_34
> > WEB : httpd 2.2.22
> > WAS : tomcat 6.0.35(EWS 2.0)
> >
> >
> > but I'm wondering if there is a way to shutdown tomcat unexpectedly??
>
> Perhaps the shutdown port?
>
>   http://tomcat.apache.org/tomcat-6.0-doc/config/server.html#Attributes
>
> >
> > Catalina.out logs seems to be shutdown normally, but nobody can shutdown
> > tomcat process
>
> Are you sure nothing else could be calling the shutdown script?  or
> perhaps killing the pid?  Running "kill <pid>" will start and orderly
> shutdown as well.
>
> >
> > I searched some similar this case, there is some way to find the app
> source
> > the"system.exit()" method
> >
> > but there is no System.exit() method. How Can I solve this problem?
>
> You can enable the security manager.  This restricts calls to
> System.exit() and other things.
>
>   http://tomcat.apache.org/tomcat-6.0-doc/security-manager-howto.html
>
> Dan
>
> >
> ====================================================================================
> > I attach Catalina.out log and App logs, it seems to normally shutdown
> > tomcat process
> >
> > Catalina.out
> > 2013. 11. 3 ?ㅼ?? 2:19:32 org.apache.coyote.http11.Http11AprProtocol pause
> > ?~U蹂? Pausing Coyote HTTP/1.1 on http-8080
> > 2013. 11. 3 ?ㅼ?? 2:19:32 org.apache.coyote.ajp.AjpAprProtocol pause
> > ?~U蹂? Pausing Coyote AJP/1.3 on ajp-8009
> > 2013. 11. 3 ?ㅼ?? 2:19:33 org.apache.catalina.core.StandardService stop
> > ?~U蹂? Stopping service Catalina
> >
> =====================================================================================
> > APP.log, it seems to normally undeploy the context.
> >
> > [2013-11-03 02:19:34,015][INFO][?:?] Closing
> > org.springframework.web.context.support.XmlWebApplicationContext@61233fe3
> :
> > display name [WebApplicationContext for namespace 'dispatcher-servlet'];
> > startup date [Wed Oct 30 21:10:23 KST 2013]; parent:
> > org.springframework.web.context.support.XmlWebApplicationContext@4d5fc672
> > [2013-11-03 02:19:34,015][INFO][?:?] Destroying singletons in
> >
> org.springframework.beans.factory.support.DefaultListableBeanFactory@4838ddcc
> :
> > defining beans []; parent:
> >
> org.springframework.beans.factory.support.DefaultListableBeanFactory@7f0eeb26
> > [2013-11-03 02:19:34,138][INFO][?:?] Close Application Context
> > [2013-11-03 02:19:34,139][INFO][?:?] Closing
> > org.springframework.web.context.support.XmlWebApplicationContext@4d5fc672
> :
> > display name [Root WebApplicationContext]; startup date [Wed Oct 30
> > 21:10:12 KST 2013]; root of context hierarchy
> >
> =======================================================================================
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>

Reply via email to