You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by philguillard <ph...@gmail.com> on 2006/01/18 17:42:31 UTC

tomcat doesn't shutdown

Hi,
Launching the script shutdown.sh doesn't shutdown my tomcat 5.5.12.
Any idea?

Phil

*What i see directly:*
[root@ap1 ~]# /opt/apache-tomcat-5.5.12/bin/shutdown.sh
Using CATALINA_BASE:   /opt/apache-tomcat-5.5.12
Using CATALINA_HOME:   /opt/apache-tomcat-5.5.12
Using CATALINA_TMPDIR: /opt/apache-tomcat-5.5.12/temp
Using JRE_HOME:       /usr/java/jdk1.5.0_06


*This is what i get in logs :*
==> catalina.2006-01-18.log <==
Jan 18, 2006 5:27:02 PM org.apache.coyote.http11.Http11BaseProtocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080
==> catalina.out <==
Jan 18, 2006 5:27:02 PM org.apache.coyote.http11.Http11BaseProtocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080
==> catalina.2006-01-18.log <==
Jan 18, 2006 5:27:03 PM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
==> catalina.out <==
Jan 18, 2006 5:27:03 PM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Hibernate dispose called
==> localhost.2006-01-18.log <==
Jan 18, 2006 5:27:03 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: 
attributeReplaced('org.apache.catalina.WELCOME_FILES', 
'[Ljava.lang.String;@197d20c')
Jan 18, 2006 5:27:03 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: 
attributeReplaced('org.apache.catalina.WELCOME_FILES', 
'[Ljava.lang.String;@5f3bad')
Jan 18, 2006 5:27:03 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: 
attributeReplaced('org.apache.catalina.WELCOME_FILES', 
'[Ljava.lang.String;@46fef3')
Jan 18, 2006 5:27:03 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextDestroyed()
Jan 18, 2006 5:27:03 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextDestroyed()
Jan 18, 2006 5:27:04 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: 
attributeReplaced('org.apache.catalina.WELCOME_FILES', 
'[Ljava.lang.String;@64dfeb')
Jan 18, 2006 5:27:04 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: 
attributeReplaced('org.apache.catalina.WELCOME_FILES', 
'[Ljava.lang.String;@a8c19b')
Jan 18, 2006 5:27:04 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: 
attributeReplaced('org.apache.catalina.WELCOME_FILES', 
'[Ljava.lang.String;@13eb2bc')
Jan 18, 2006 5:27:04 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextDestroyed()
Jan 18, 2006 5:27:04 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextDestroyed()
==> catalina.2006-01-18.log <==
Jan 18, 2006 5:27:04 PM org.apache.coyote.http11.Http11BaseProtocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080
Jan 18, 2006 5:27:04 PM org.apache.catalina.core.AprLifecycleListener 
lifecycleEvent
INFO: Failed shutdown of Apache Portable Runtime
==> catalina.out <==
Jan 18, 2006 5:27:04 PM org.apache.coyote.http11.Http11BaseProtocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080
Jan 18, 2006 5:27:04 PM org.apache.catalina.core.AprLifecycleListener 
lifecycleEvent
INFO: Failed shutdown of Apache Portable Runtime



*Then i commented out this stuff cause i don't need JMX support:*
  <!-- Comment these entries out to disable JMX MBeans support used for the
       administration web application -->
  <!--<Listener className="org.apache.catalina.core.AprLifecycleListener" />
  <Listener 
className="org.apache.catalina.mbeans.ServerLifecycleListener" />
  <Listener 
className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
  <Listener 
className="org.apache.catalina.storeconfig.StoreConfigLifecycleListener"/>-->

*Now the "INFO: Failed shutdown of Apache Portable Runtime" disappeared*

==> catalina.2006-01-18.log <==
Jan 18, 2006 5:34:15 PM org.apache.coyote.http11.Http11BaseProtocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080
==> catalina.out <==
Jan 18, 2006 5:34:15 PM org.apache.coyote.http11.Http11BaseProtocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080
==> catalina.2006-01-18.log <==
Jan 18, 2006 5:34:16 PM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Jan 18, 2006 5:34:16 PM org.apache.coyote.http11.Http11BaseProtocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080
==> catalina.out <==
Jan 18, 2006 5:34:16 PM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Hibernate dispose called
Jan 18, 2006 5:34:16 PM org.apache.coyote.http11.Http11BaseProtocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080
==> localhost.2006-01-18.log <==
Jan 18, 2006 5:34:16 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: 
attributeReplaced('org.apache.catalina.WELCOME_FILES', 
'[Ljava.lang.String;@130b13c')
Jan 18, 2006 5:34:16 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: 
attributeReplaced('org.apache.catalina.WELCOME_FILES', 
'[Ljava.lang.String;@1c3e3fb')
Jan 18, 2006 5:34:16 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: 
attributeReplaced('org.apache.catalina.WELCOME_FILES', 
'[Ljava.lang.String;@1aca5e2')
Jan 18, 2006 5:34:16 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextDestroyed()
Jan 18, 2006 5:34:16 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextDestroyed()
Jan 18, 2006 5:34:16 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: 
attributeReplaced('org.apache.catalina.WELCOME_FILES', 
'[Ljava.lang.String;@272fec')
Jan 18, 2006 5:34:16 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: 
attributeReplaced('org.apache.catalina.WELCOME_FILES', 
'[Ljava.lang.String;@bb3f71')
Jan 18, 2006 5:34:16 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: 
attributeReplaced('org.apache.catalina.WELCOME_FILES', 
'[Ljava.lang.String;@1424b7b')
Jan 18, 2006 5:34:16 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextDestroyed()
Jan 18, 2006 5:34:16 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextDestroyed()

*Just in case this is my process*
root      4888     1 17 17:33 pts/2    00:00:14 
/usr/java/jdk1.5.0_06/bin/java 
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager 
-Djava.util.logging.config.file=/opt/apache-tomcat-5.5.12/conf/logging.properties 
-Djava.endorsed.dirs=/opt/apache-tomcat-5.5.12/common/endorsed 
-classpath 
:/opt/apache-tomcat-5.5.12/bin/bootstrap.jar:/opt/apache-tomcat-5.5.12/bin/commons-logging-api.jar 
-Dcatalina.base=/opt/apache-tomcat-5.5.12 
-Dcatalina.home=/opt/apache-tomcat-5.5.12 
-Djava.io.tmpdir=/opt/apache-tomcat-5.5.12/temp 
org.apache.catalina.startup.Bootstrap start
root      4958  4594  0 17:35 pts/2    00:00:00 grep tomcat


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


Re: tomcat doesn't shutdown

Posted by philguillard <ph...@gmail.com>.
Right, Thanks !!
Phil

Tim Funk wrote:

> Eyebrowse is created in a non daemon thread preventing JVM shutdown. 
> See their support group for help.
>
> "Eyebrowse Indexer" prio=1 tid=0x085e80a0 nid=0x19f7 waiting on 
> condition [0xb1afa000..0xb1afa1b0]
>        at java.lang.Thread.sleep(Native Method)
>        at 
> org.tigris.eyebrowse.servlets.IndexerServlet$UpdateRunner.run(Unknown 
> Source)
>        at java.lang.Thread.run(Thread.java:595)
>
> -Tim
>
> philguillard wrote:
>
>> Thanks for that help,
>>
>> I did a ./shtdown.sh, then a kill -3 on my tomcatpid, i pasted below 
>> the dump i get in tomcat logs. What does this mean? Excuse me for my 
>> ignoranc!
>> My problem is just that i'd like to be able to use shutdown.sh in an 
>> automatic script without needing to manually check the process and 
>> kill it.
>>
>> Regards,
>> Phil
>>
>>
>>
>> Tim Funk wrote:
>>
>>> http://tomcat.apache.org/faq/misc.html#stop
>>>
>>> -Tim
>>>
>>> philguillard wrote:
>>>
>>>> Hi,
>>>> Launching the script shutdown.sh doesn't shutdown my tomcat 5.5.12.
>>>> Any idea?
>>>
>
>
> ---------------------------------------------------------------------
> 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 doesn't shutdown

Posted by Tim Funk <fu...@joedog.org>.
Eyebrowse is created in a non daemon thread preventing JVM shutdown. See 
their support group for help.

"Eyebrowse Indexer" prio=1 tid=0x085e80a0 nid=0x19f7 waiting on condition 
[0xb1afa000..0xb1afa1b0]
        at java.lang.Thread.sleep(Native Method)
        at 
org.tigris.eyebrowse.servlets.IndexerServlet$UpdateRunner.run(Unknown Source)
        at java.lang.Thread.run(Thread.java:595)

-Tim

philguillard wrote:

> Thanks for that help,
> 
> I did a ./shtdown.sh, then a kill -3 on my tomcatpid, i pasted below the 
> dump i get in tomcat logs. What does this mean? Excuse me for my ignoranc!
> My problem is just that i'd like to be able to use shutdown.sh in an 
> automatic script without needing to manually check the process and kill it.
> 
> Regards,
> Phil
> 
> 
> 
> Tim Funk wrote:
> 
>> http://tomcat.apache.org/faq/misc.html#stop
>>
>> -Tim
>>
>> philguillard wrote:
>>
>>> Hi,
>>> Launching the script shutdown.sh doesn't shutdown my tomcat 5.5.12.
>>> Any idea?


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


Re: tomcat doesn't shutdown

Posted by philguillard <ph...@gmail.com>.
Thanks for that help,
 
I did a ./shtdown.sh, then a kill -3 on my tomcatpid, i pasted below the 
dump i get in tomcat logs. What does this mean? Excuse me for my ignoranc!
My problem is just that i'd like to be able to use shutdown.sh in an 
automatic script without needing to manually check the process and kill it.

Regards,
Phil


==> /opt/apache-tomcat-5.5.12/logs/catalina.out <==
Full thread dump Java HotSpot(TM) Client VM (1.5.0_06-b05 mixed mode, 
sharing):

"DestroyJavaVM" prio=1 tid=0xae81a8f8 nid=0x19ef waiting on condition 
[0x00000000..0xbfffd450]

"TP-Processor4" daemon prio=1 tid=0xb1932440 nid=0x1a1e in Object.wait() 
[0xb04e5000..0xb04e6130]
        at java.lang.Object.wait(Native Method)
        - waiting on <0x89fae368> (a org.apache.jk.common.ChannelSocket)
        at java.lang.Object.wait(Object.java:474)
        at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:287)
        - locked <0x89fae368> (a org.apache.jk.common.ChannelSocket)
        at 
org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:637)
        at 
org.apache.jk.common.ChannelSocket$SocketAcceptor.runIt(ChannelSocket.java:847)
        at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Thread.java:595)

"http-8080-Processor24" daemon prio=1 tid=0xae885f28 nid=0x1a18 waiting 
on condition [0xb07eb000..0xb07ebe30]
        at java.lang.Thread.sleep(Native Method)
        at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:61)
        at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Thread.java:595)

"Eyebrowse Indexer" prio=1 tid=0x085e80a0 nid=0x19f7 waiting on 
condition [0xb1afa000..0xb1afa1b0]
        at java.lang.Thread.sleep(Native Method)
        at 
org.tigris.eyebrowse.servlets.IndexerServlet$UpdateRunner.run(Unknown 
Source)
        at java.lang.Thread.run(Thread.java:595)

"Low Memory Detector" daemon prio=1 tid=0x080a39d8 nid=0x19f5 runnable 
[0x00000000..0x00000000]

"CompilerThread0" daemon prio=1 tid=0x080a2478 nid=0x19f4 waiting on 
condition [0x00000000..0xb23c4a18]

"Signal Dispatcher" daemon prio=1 tid=0x080a1548 nid=0x19f3 runnable 
[0x00000000..0x00000000]

"Finalizer" daemon prio=1 tid=0x0809a778 nid=0x19f2 in Object.wait() 
[0xb26c6000..0xb26c6f30]
        at java.lang.Object.wait(Native Method)
        - waiting on <0x89151b60> (a java.lang.ref.ReferenceQueue$Lock)
        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116)
        - locked <0x89151b60> (a java.lang.ref.ReferenceQueue$Lock)
        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132)
        at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)

"Reference Handler" daemon prio=1 tid=0x08099a68 nid=0x19f1 in 
Object.wait() [0xb2747000..0xb2747eb0]
        at java.lang.Object.wait(Native Method)
        - waiting on <0x89151be0> (a java.lang.ref.Reference$Lock)
        at java.lang.Object.wait(Object.java:474)
        at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116)
        - locked <0x89151be0> (a java.lang.ref.Reference$Lock)

"VM Thread" prio=1 tid=0x08096f18 nid=0x19f0 runnable

"VM Periodic Task Thread" prio=1 tid=0x080a4e78 nid=0x19f6 waiting on 
condition


Tim Funk wrote:

> http://tomcat.apache.org/faq/misc.html#stop
>
> -Tim
>
> philguillard wrote:
>
>> Hi,
>> Launching the script shutdown.sh doesn't shutdown my tomcat 5.5.12.
>> Any idea?
>>  
>
>
> ---------------------------------------------------------------------
> 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 doesn't shutdown

Posted by Tim Funk <fu...@joedog.org>.
http://tomcat.apache.org/faq/misc.html#stop

-Tim

philguillard wrote:

> Hi,
> Launching the script shutdown.sh doesn't shutdown my tomcat 5.5.12.
> Any idea?
>  

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