Nio related problem - all threads are stuck

2008-03-06 Thread esagi123 esagi123
 Hello,

I have a web server application running (I am using TOMCAT NIO connector).
Looking at the thread dump It appears 392 request processing threads are
stuck while waiting for a monitor:

Waiting for monitor entry [0x58d75000..0x58d75eb0] at
java.nio.channels.spi.AbstractSelector.cancel(AbstractSelector.java:71)
- waiting to lock 0x739bdeb8 (a java.util.HashSet)
at java.nio.channels.spi.AbstractSelectionKey.cancel(
AbstractSelectionKey.java:56)
- locked 0xd8727238 (a sun.nio.ch.SelectionKeyImpl)

The wanted monitor is being held by the main selector thread which also
wait for a monitor entry:

Waiting for monitor entry [0x58d75000..0x58d75eb0]
at java.nio.channels.spi.AbstractSelector.cancel(AbstractSelector.java:71)
- waiting to lock 0x739bdeb8 (a java.util.HashSet)
at java.nio.channels.spi.AbstractSelectionKey.cancel(
AbstractSelectionKey.java:56)
- locked 0xd8727238 (a sun.nio.ch.SelectionKeyImpl)

The monitor that the selector is waiting for is not being held by any other
application thread.

Meanwhile, I am receiving request timeouts.

Comments will be appreciated.
Thanks


Re: Nio related problem - all threads are stuck

2008-03-06 Thread esagi123 esagi123
I am running with JDK 1.5.0_11-b03, tomcat 6.0.14 on a linux redhat machine

On Thu, Mar 6, 2008 at 4:38 PM, Caldarale, Charles R 
[EMAIL PROTECTED] wrote:

  From: esagi123 esagi123 [mailto:[EMAIL PROTECTED]
  Subject: Nio related problem - all threads are stuck
 
  Looking at the thread dump It appears 392 request processing
  threads are stuck while waiting for a monitor:

 Tomcat version?  JRE/JDK version?  Platform?

  - 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 start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]