You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Luca Gervasi <to...@ashetic.net> on 2011/02/15 11:37:35 UTC

Hanged threads

Hello,

Server version: Apache Tomcat/6.0.26
Server built:   March 9 2010 1805
Server number:  6.0.26.0
OS Name:        Linux
OS Version:     2.6.18-92.1.6.el5PAE
Architecture:   i386
JVM Version:    1.5.0_16-b02
JVM Vendor:     Sun Microsystems Inc.


yesterday i ran a connection test over the http connector (so, no
mod_jk) of one tomcat.

The Thread dump reveals many threads hanged with:

   java.lang.Thread.State: WAITING on
org.apache.tomcat.util.net.JIoEndpoint$Worker@b446f9         at
java.lang.Object.wait(Native Method)         at
java.lang.Object.wait(Object.java:474)         at
org.apache.tomcat.util.net.JIoEndpoint$Worker.await(JIoEndpoint.java:458)
       at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:484)
        at java.lang.Thread.run(Thread.java:595)

Is that normal? The activity finished 12 hours ago...

Thanks

Bye

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


RE: Hanged threads

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Luca Gervasi [mailto:tomcat@ashetic.net] 
> Subject: Hanged threads

> The Thread dump reveals many threads hanged with:
>    java.lang.Thread.State: WAITING on
> org.apache.tomcat.util.net.JIoEndpoint$Worker@b446f9         at
> java.lang.Object.wait(Native Method)         at
> java.lang.Object.wait(Object.java:474)         at
> org.apache.tomcat.util.net.JIoEndpoint$Worker.await(JIoEndpoint.java:458)
>        at
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:484)
>         at java.lang.Thread.run(Thread.java:595)

Perfectly normal.  The threads are not hung, they're just waiting for more work to show up.  If you want more control over how many idle threads are kept around, use an <Executor>.

http://tomcat.apache.org/tomcat-6.0-doc/config/executor.html

- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


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