You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2015/05/19 16:24:07 UTC

[Bug 57936] New: Wrong handling of acceptorThreadCount

https://bz.apache.org/bugzilla/show_bug.cgi?id=57936

            Bug ID: 57936
           Summary: Wrong handling of acceptorThreadCount
           Product: Tomcat 8
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: minor
          Priority: P2
         Component: Util
          Assignee: dev@tomcat.apache.org
          Reporter: oliver@kant.net

According to
https://svn.apache.org/repos/asf/tomcat/trunk/java/org/apache/tomcat/util/net/Nio2Endpoint.java
there is a statement saying that if the acceptorThreadCount is 0, it is being
set to 1 since NIO2 does not allow any form of IO concurrency.

Setting the acceptorThreadCount to 2 in server.xml will throw an error ("Socket
accept failed"). Wouldn't it be better to change the code

        // Initialize thread count defaults for acceptor, poller
        if (acceptorThreadCount == 0) {
            // NIO2 does not allow any form of IO concurrency
            acceptorThreadCount = 1;
        }

into

        // Initialize thread count defaults for acceptor, poller
        if (acceptorThreadCount != 1) {
            // NIO2 does not allow any form of IO concurrency
            acceptorThreadCount = 1;
        }

to avoid this behaviour?

Thanks,
Oliver

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

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


[Bug 57936] Wrong handling of acceptorThreadCount

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=57936

Onur <on...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|minor                       |major
                 CC|                            |onrshin@gmail.com
          Component|Util                        |Catalina

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

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


[Bug 57936] Wrong handling of acceptorThreadCount

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=57936

Oliver Kant <ol...@kant.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |oliver@kant.net

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

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


[Bug 57936] Wrong handling of acceptorThreadCount

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=57936

Remy Maucherat <re...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #1 from Remy Maucherat <re...@apache.org> ---
This looks like a good idea, and it will be included in 8.0.24.

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

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