tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 50467] New: Occasional NIO connector lockups on high load
Date Mon, 13 Dec 2010 19:02:39 GMT

           Summary: Occasional NIO connector lockups on high load
           Product: Tomcat 6
           Version: 6.0.29
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: Connectors

We've been running Tomcat 6.0.29 on FC8 2.6.21 with tens of thousands of long
polling threads which usually work fine. Every few days though we will
experience a sudden lockup of the NIO connector and it has to be restarted.
These have been seen to be accompanied by the following stack trace:

Exception in thread "http-8082-ClientPoller-0" java.lang.NullPointerException

Looking at the source it seems the issue is likely to be a race condition where
access() is called on a null attachment, probably while it's in the process of
being cancelled:

                    while (iterator != null && iterator.hasNext()) {
                        SelectionKey sk = (SelectionKey);
                        KeyAttachment attachment =
/*NPE*/                 attachment.access();
                        processKey(sk, attachment);

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message