tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maduranga Kannangara <madura...@koodos.com>
Subject Re: Tomcat does not shutdown properly and kill -3 does not work!
Date Wed, 06 Aug 2008 10:58:40 GMT
Thanks a lot Peter! I got a thread dump using "jstack 704" (PID was 704)
I think I need a little more of your help to find out where exactly going
wrong. Below is my dump and thanks a lot for your time.

MadurangaMAC:bin Maduranga$ jstack 704
Attaching to process ID 704, please wait...
Debugger attached successfully.
Server compiler detected.
JVM version is 1.5.0_13-119
Thread t@59395: (state = BLOCKED)


Thread t@62211: (state = BLOCKED)
 - java.lang.Object.wait(long) @bci=0 (Interpreted frame)
 - java.lang.Object.wait() @bci=2, line=474 (Interpreted frame)
 - org.apache.jk.common.ChannelSocket.accept(org.apache.jk.core.MsgContext)
@bci=20, line=306 (Interpreted frame)
 - org.apache.jk.common.ChannelSocket.acceptConnections() @bci=72, line=666
(Interpreted frame)
 - 
org.apache.jk.common.ChannelSocket$SocketAcceptor.runIt(java.lang.Object[])
@bci=4, line=876 (Interpreted frame)
 - org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run() @bci=167,
line=689 (Interpreted frame)
 - java.lang.Thread.run() @bci=11, line=613 (Interpreted frame)


Thread t@63491: (state = BLOCKED)
 - java.lang.Thread.sleep(long) @bci=0 (Interpreted frame)
 - 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(java.lang.Object
[]) @bci=23, line=62 (Interpreted frame)
 - org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run() @bci=167,
line=689 (Interpreted frame)
 - java.lang.Thread.run() @bci=11, line=613 (Interpreted frame)


Thread t@63747: (state = BLOCKED)
 - java.lang.Object.wait(long) @bci=0 (Interpreted frame)
 - java.util.TimerThread.mainLoop() @bci=201, line=509 (Interpreted frame)
 - java.util.TimerThread.run() @bci=1, line=462 (Interpreted frame)


Thread t@64003: (state = BLOCKED)
 - java.lang.Thread.sleep(long) @bci=0 (Interpreted frame)
 - org.quartz.core.QuartzSchedulerThread.run() @bci=870, line=420
(Interpreted frame)


Thread t@64259: (state = BLOCKED)
 - java.lang.Object.wait(long) @bci=0 (Interpreted frame)
 - org.quartz.simpl.SimpleThreadPool$WorkerThread.run() @bci=44, line=523
(Interpreted frame)


Thread t@64515: (state = BLOCKED)
 - java.lang.Object.wait(long) @bci=0 (Interpreted frame)
 - org.quartz.simpl.SimpleThreadPool$WorkerThread.run() @bci=44, line=523
(Interpreted frame)


Thread t@64771: (state = BLOCKED)
 - java.lang.Object.wait(long) @bci=0 (Interpreted frame)
 - org.quartz.simpl.SimpleThreadPool$WorkerThread.run() @bci=44, line=523
(Interpreted frame)


Thread t@65795: (state = BLOCKED)
 - java.lang.Object.wait(long) @bci=0 (Interpreted frame)
 - org.quartz.simpl.SimpleThreadPool$WorkerThread.run() @bci=44, line=523
(Interpreted frame)


Thread t@66051: (state = BLOCKED)
 - java.lang.Object.wait(long) @bci=0 (Interpreted frame)
 - org.quartz.simpl.SimpleThreadPool$WorkerThread.run() @bci=44, line=523
(Interpreted frame)


Thread t@66307: (state = BLOCKED)
 - java.lang.Object.wait(long) @bci=0 (Interpreted frame)
 - org.quartz.simpl.SimpleThreadPool$WorkerThread.run() @bci=44, line=523
(Interpreted frame)


Thread t@66563: (state = BLOCKED)
 - java.lang.Object.wait(long) @bci=0 (Interpreted frame)
 - org.quartz.simpl.SimpleThreadPool$WorkerThread.run() @bci=44, line=523
(Interpreted frame)


Thread t@66819: (state = BLOCKED)
 - java.lang.Object.wait(long) @bci=0 (Interpreted frame)
 - org.quartz.simpl.SimpleThreadPool$WorkerThread.run() @bci=44, line=523
(Interpreted frame)


Thread t@67075: (state = BLOCKED)
 - java.lang.Object.wait(long) @bci=0 (Interpreted frame)
 - org.quartz.simpl.SimpleThreadPool$WorkerThread.run() @bci=44, line=523
(Interpreted frame)


Thread t@67331: (state = BLOCKED)
 - java.lang.Object.wait(long) @bci=0 (Interpreted frame)
 - org.quartz.simpl.SimpleThreadPool$WorkerThread.run() @bci=44, line=523
(Interpreted frame)


Thread t@67587: (state = BLOCKED)


Thread t@67843: (state = BLOCKED)
 - java.lang.Object.wait(long) @bci=0 (Interpreted frame)
 - java.lang.ref.ReferenceQueue.remove(long) @bci=44, line=116 (Interpreted
frame)
 - java.lang.ref.ReferenceQueue.remove() @bci=2, line=132 (Interpreted
frame)
 - java.lang.ref.Finalizer$FinalizerThread.run() @bci=3, line=159
(Interpreted frame)


Thread t@68099: (state = BLOCKED)
 - java.lang.Object.wait(long) @bci=0 (Interpreted frame)
 - java.lang.Object.wait() @bci=2, line=474 (Interpreted frame)
 - java.lang.ref.Reference$ReferenceHandler.run() @bci=46, line=116
(Interpreted frame)


Thanks again
Muds


On 6/8/08 11:27, "Peter Crowther" <Peter.Crowther@melandra.com> wrote:

>> From: Maduranga Kannangara [mailto:maduranga@koodos.com]
>> What I need simply is a clean shutdown on Tomcat :-)
> 
> Yes.  In order to *get* that clean shutdown, you need to find out what's
> preventing it :-).
> 
> One common problem is that something in your webapp has created a thread and
> not marked it as a daemon thread
> (http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Thread.html#setDaemon(boole
> an) - yes, I know that's probably for the wrong Java version, but the problem
> still stands).  The JVM won't exit while that thread's still alive, so the
> notion of trying to shut down Tomcat then getting a thread dump after that
> point is a very good one.
> 
> Hmm.  You're on a 1.5 JDK on Linux.  That means you should be able to use
> jstack to get a thread dump - might be worth a try.  I don't think we can help
> you much more on this list until we have some idea of what's keeping the JVM
> running!
> 
>                 - Peter
> 
> ---------------------------------------------------------------------
> 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
> 


---------------------------------------------------------------------
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


Mime
View raw message