You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by chateau Xiao <ch...@gmail.com> on 2011/05/11 09:11:09 UTC

A question about thread dump!

hi all:

for the necessary of debug. I need the thread dump information like below to
show me the threads running status.

Full thread dump Java HotSpot(TM) 64-Bit Server VM (16.3-b01 mixed mode):

"Attach Listener" daemon prio=10 tid=0x0000000001f55000 nid=0x4726 runnable
[0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"Keep-Alive-Timer" daemon prio=10 tid=0x0000002c32f15000 nid=0x3c54 waiting
on condition [0x0000000047270000]
   java.lang.Thread.State: TIMED_WAITING (sleeping)
at java.lang.Thread.sleep(Native Method)
at sun.net.www.http.KeepAliveCache.run(KeepAliveCache.java:149)
at java.lang.Thread.run(Thread.java:619)

"http-80-192" daemon prio=10 tid=0x0000002c3197f800 nid=0x53d0 in
Object.wait() [0x000000004f4f2000]
   java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x0000002b0c58bc38> (a
org.apache.tomcat.util.net.AprEndpoint$Worker)
at java.lang.Object.wait(Object.java:485)
at
org.apache.tomcat.util.net.AprEndpoint$Worker.await(AprEndpoint.java:1464)
- locked <0x0000002b0c58bc38> (a
org.apache.tomcat.util.net.AprEndpoint$Worker)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1489)
at java.lang.Thread.run(Thread.java:619)

"http-80-191" daemon prio=10 tid=0x0000002c310d2800 nid=0x53cf in
Object.wait() [0x000000004f3f1000]
   java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x0000002b0c56a0f0> (a
org.apache.tomcat.util.net.AprEndpoint$Worker)
at java.lang.Object.wait(Object.java:485)
at
org.apache.tomcat.util.net.AprEndpoint$Worker.await(AprEndpoint.java:1464)
- locked <0x0000002b0c56a0f0> (a
org.apache.tomcat.util.net.AprEndpoint$Worker)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1489)
at java.lang.Thread.run(Thread.java:619)






I usually use kill -3 <pid> or jstack to satisify my requirement.  when
things came to jsvc, it just doesn't work effectively. when i send kill -3
signal to jsvc process, it just simplely <defunct> and gaven nothing
output.

how can i use the 'kill' to send a signal to jsvc then get an output?

Re: A question about thread dump!

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



On 5/11/2011 3:11 AM, chateau Xiao wrote:
> for the necessary of debug. I need the thread dump information like below to
> show me the threads running status.
>
> [snip]
>
> I usually use kill -3 <pid> or jstack to satisify my requirement.  when
> things came to jsvc, it just doesn't work effectively. when i send kill -3
> signal to jsvc process, it just simplely <defunct> and gaven nothing
> output.
> 
> how can i use the 'kill' to send a signal to jsvc then get an output?

http://wiki.apache.org/tomcat/HowTo#How_do_I_obtain_a_thread_dump_of_my_running_webapp_.3F

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk3KkaQACgkQ9CaO5/Lv0PBwdQCeLSQ6uHKB1rBbSZ0YyhaNbkuI
zy0An1EneBcw8RM1WQwveO1ooAVebeMe
=CCec
-----END PGP SIGNATURE-----

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