You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by raj kumar <bp...@gmail.com> on 2009/11/17 11:01:26 UTC

Tomcat shudown does not kill java process

Hi friends,

I am currently using Tomcat( jakarta-tomcat-5.0.28). When i shutdown the
tomcat server from my unix platform using ./shutdown.sh the java process is
not getting closed.I need to close the process explicitly. Please help me in
this regard.

Thanks,
Phani.

Re: Tomcat shudown does not kill java process

Posted by Mark Thomas <ma...@apache.org>.
raj kumar wrote:
> Hi , Please find my thread dump...and suggest me what;'s causing the issue.
> 
> 
> "Thread-41" prio=5 tid=0x00319a68 nid=0x33 in Object.wait()
> [0xd4181000..0xd41819c8]

&

> "Thread-40" prio=5 tid=0x0065c8c0 nid=0x32 in Object.wait()
> [0xd4281000..0xd42819c8]


and any threads like them. If you start a thread, you have to either:
a) make it a daemon thread
or
b) stop it before shutting down Tomcat

Mark



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


Re: Tomcat shudown does not kill java process

Posted by raj kumar <bp...@gmail.com>.
Hi , Please find my thread dump...and suggest me what;'s causing the issue.


"Thread-41" prio=5 tid=0x00319a68 nid=0x33 in Object.wait()
[0xd4181000..0xd41819c8]
        at java.lang.Object.wait(Native Method)
        - waiting on <0xd941bdd8> (a BlockingQueue)
        at java.lang.Object.wait(Object.java:429)
        at BlockingQueue.deQueue(BlockingQueue.java:76)
        - locked <0xd941bdd8> (a BlockingQueue)
        at BlockingQueue.deQueue(BlockingQueue.java:59)
        - locked <0xd941bdd8> (a BlockingQueue)
        at JProxyUpdate.run(JProxyUpdate.java:40)
        - locked <0xd955f0f8> (a java.lang.Object)
        at java.lang.Thread.run(Thread.java:534)

"Thread-40" prio=5 tid=0x0065c8c0 nid=0x32 in Object.wait()
[0xd4281000..0xd42819c8]
        at java.lang.Object.wait(Native Method)
        - waiting on <0xd92a9920> (a BlockingQueue)
        at java.lang.Object.wait(Object.java:429)
        at BlockingQueue.deQueue(BlockingQueue.java:76)
        - locked <0xd92a9920> (a BlockingQueue)
        at BlockingQueue.deQueue(BlockingQueue.java:59)
        - locked <0xd92a9920> (a BlockingQueue)
        at JProxyUpdate.run(JProxyUpdate.java:40)
        - locked <0xd92cd2c0> (a java.lang.Object)
        at java.lang.Thread.run(Thread.java:534)

"DestroyJavaVM" prio=5 tid=0x000381a8 nid=0x1 waiting on condition
[0x00000000..0xffbeeab0]

"Thread-39" prio=5 tid=0x002d0098 nid=0x31 in Object.wait()
[0xd2281000..0xd22819c8]
        at java.lang.Object.wait(Native Method)
        - waiting on <0xd92abf38> (a BlockingQueue)
        at java.lang.Object.wait(Object.java:429)
        at BlockingQueue.deQueue(BlockingQueue.java:76)
        - locked <0xd92abf38> (a BlockingQueue)
        at BlockingQueue.deQueue(BlockingQueue.java:59)
        - locked <0xd92abf38> (a BlockingQueue)
        at JProxyUpdate.run(JProxyUpdate.java:40)
        - locked <0xd9419078> (a java.lang.Object)
        at java.lang.Thread.run(Thread.java:534)

"http-8078-Processor24" daemon prio=5 tid=0x00324738 nid=0x29 waiting on
condition [0xd2a81000..0xd2a819c8]
        at java.lang.Thread.sleep(Native Method)
        at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:540)
        at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
        at java.lang.Thread.run(Thread.java:534)

"Thread-6" prio=5 tid=0x002ffec8 nid=0x10 waiting on condition
[0xd4381000..0xd43819c8]
        at java.lang.Thread.sleep(Native Method)
        at JProcessor.run(JProcessor.java:124)
        at java.lang.Thread.run(Thread.java:534)

"Thread-5" prio=5 tid=0x002ffca8 nid=0xf waiting on condition
[0xd4481000..0xd44819c8]
        at java.lang.Thread.sleep(Native Method)
        at SocketHandler.GetMessage(SocketHandler.java:202)
        at SocketHandler.run(SocketHandler.java:1060)
        at java.lang.Thread.run(Thread.java:534)

"Thread-4" prio=5 tid=0x002f8038 nid=0xe waiting on condition
[0xd4581000..0xd45819c8]
        at java.lang.Thread.sleep(Native Method)
        at JProcessor.run(JProcessor.java:124)
        at java.lang.Thread.run(Thread.java:534)

"Thread-3" prio=5 tid=0x002f7e90 nid=0xd waiting on condition
[0xd4681000..0xd46819c8]
        at java.lang.Thread.sleep(Native Method)
        at SocketHandler.GetMessage(SocketHandler.java:202)
        at SocketHandler.run(SocketHandler.java:1060)
        at java.lang.Thread.run(Thread.java:534)

"Thread-2" prio=5 tid=0x003786a8 nid=0xc waiting on condition
[0xd4781000..0xd47819c8]
        at java.lang.Thread.sleep(Native Method)
        at JProcessor.run(JProcessor.java:124)
        at java.lang.Thread.run(Thread.java:534)

"Thread-1" prio=5 tid=0x00378500 nid=0xb waiting on condition
[0xd4881000..0xd48819c8]
        at java.lang.Thread.sleep(Native Method)
        at SocketHandler.GetMessage(SocketHandler.java:202)
        at SocketHandler.run(SocketHandler.java:1060)
        at java.lang.Thread.run(Thread.java:534)

"Signal Dispatcher" daemon prio=10 tid=0x000f0de8 nid=0x8 waiting on
condition [0x00000000..0x00000000]

"Finalizer" daemon prio=8 tid=0x000ed780 nid=0x6 in Object.wait()
[0xfb981000..0xfb9819c8]
        at java.lang.Object.wait(Native Method)
        - waiting on <0xd8d45590> (a java.lang.ref.ReferenceQueue$Lock)
        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:111)
        - locked <0xd8d45590> (a java.lang.ref.ReferenceQueue$Lock)
        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:127)
        at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)

"Reference Handler" daemon prio=10 tid=0x000ebe18 nid=0x5 in Object.wait()
[0xfba81000..0xfba819c8]
        at java.lang.Object.wait(Native Method)
        - waiting on <0xd8d455f8> (a java.lang.ref.Reference$Lock)
        at java.lang.Object.wait(Object.java:429)
        at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:115)
        - locked <0xd8d455f8> (a java.lang.ref.Reference$Lock)

"VM Thread" prio=5 tid=0x000ea998 nid=0x4 runnable

"VM Periodic Task Thread" prio=10 tid=0x000f32e0 nid=0xa waiting on
condition
"Suspend Checker Thread" prio=10 tid=0x000ef018 nid=0x7 runnable


On Tue, Nov 17, 2009 at 4:05 PM, raj kumar <bp...@gmail.com> wrote:

> After shutting down the tomcat server, java process remains running till i
> explicitly kill it. By the way how to take thread dump. Please help me with
> the command
>
> Thanks,
> Raj
>
>
> On Tue, Nov 17, 2009 at 3:57 PM, Pid <pi...@pidster.com> wrote:
>
>> On 17/11/2009 10:01, raj kumar wrote:
>>
>>> Hi friends,
>>>
>>> I am currently using Tomcat( jakarta-tomcat-5.0.28). When i shutdown the
>>> tomcat server from my unix platform using ./shutdown.sh the java process
>>> is
>>> not getting closed.I need to close the process explicitly. Please help me
>>> in
>>> this regard.
>>>
>>
>> It doesn't stop it, or it's taking a long time to stop it?
>>
>> Try taking a thread dump after you've called the shutdown script to see
>> what's still running in the app.   Should give you a clue as to which code
>> is waiting on something.
>>
>>
>> p
>>
>>
>>
>>
>>  Thanks,
>>> Phani.
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
>

Re: Tomcat shudown does not kill java process

Posted by raj kumar <bp...@gmail.com>.
After shutting down the tomcat server, java process remains running till i
explicitly kill it. By the way how to take thread dump. Please help me with
the command

Thanks,
Raj

On Tue, Nov 17, 2009 at 3:57 PM, Pid <pi...@pidster.com> wrote:

> On 17/11/2009 10:01, raj kumar wrote:
>
>> Hi friends,
>>
>> I am currently using Tomcat( jakarta-tomcat-5.0.28). When i shutdown the
>> tomcat server from my unix platform using ./shutdown.sh the java process
>> is
>> not getting closed.I need to close the process explicitly. Please help me
>> in
>> this regard.
>>
>
> It doesn't stop it, or it's taking a long time to stop it?
>
> Try taking a thread dump after you've called the shutdown script to see
> what's still running in the app.   Should give you a clue as to which code
> is waiting on something.
>
>
> p
>
>
>
>
>  Thanks,
>> Phani.
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: Tomcat shudown does not kill java process

Posted by Pid <pi...@pidster.com>.
On 17/11/2009 10:01, raj kumar wrote:
> Hi friends,
>
> I am currently using Tomcat( jakarta-tomcat-5.0.28). When i shutdown the
> tomcat server from my unix platform using ./shutdown.sh the java process is
> not getting closed.I need to close the process explicitly. Please help me in
> this regard.

It doesn't stop it, or it's taking a long time to stop it?

Try taking a thread dump after you've called the shutdown script to see 
what's still running in the app.   Should give you a clue as to which 
code is waiting on something.


p




> Thanks,
> Phani.
>


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


RE: Tomcat shudown does not kill java process

Posted by Ge...@gta-travel.com.
Hi
Probably not your problem but worth mentioning. 

If you options like:
JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.port=5001
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false "

that is CATALINA specific you should change it to 

CATALINA_OPTS="-Dcom.sun.management.jmxremote.port=5001
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false "

Otherwise the shutdown script that needs to shutdown your server never
gets started because there is a port conflict.

Regards


-----Original Message-----
From: raj kumar [mailto:bprajkumar121@gmail.com] 
Sent: 17 November 2009 10:01
To: users@tomcat.apache.org
Subject: Tomcat shudown does not kill java process

Hi friends,

I am currently using Tomcat( jakarta-tomcat-5.0.28). When i shutdown the
tomcat server from my unix platform using ./shutdown.sh the java process
is
not getting closed.I need to close the process explicitly. Please help
me in
this regard.

Thanks,
Phani.

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________

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