You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2014/05/02 17:49:20 UTC

[Bug 56483] New: add disableKeepAlivePercentage similar to tomcat http connector

https://issues.apache.org/bugzilla/show_bug.cgi?id=56483

            Bug ID: 56483
           Summary: add disableKeepAlivePercentage similar to tomcat http
                    connector
           Product: Apache httpd-2
           Version: 2.2.27
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Core
          Assignee: bugs@httpd.apache.org
          Reporter: brett.okken.os@gmail.com

The tomcat7 http connector[1] has a configuration for
disableKeepAlivePercentage which will stop allowing keep alive when a certain
percentage of the available connections are in use. This would be a nice
feature for httpd to allow for managing keep alive also.

[1] - https://tomcat.apache.org/tomcat-7.0-doc/config/http.html

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

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 56483] add disableKeepAlivePercentage similar to tomcat http connector

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

--- Comment #1 from Eric Covener <co...@gmail.com> ---
Probably only useful on non-event MPM, I am surprised tomcat ties up a thread
w/ each keepalive connection. Am I misunderstanding the feature?

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

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 56483] add disableKeepAlivePercentage similar to tomcat http connector

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

--- Comment #2 from Brett Okken <br...@gmail.com> ---
The goal (at least from my perspective) is more about protecting from running
out of available connections during a spike in requests because of connections
being held open by keep alive.

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

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 56483] add disableKeepAlivePercentage similar to tomcat http connector

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

--- Comment #3 from Rainer Jung <ra...@kippdata.de> ---
Tomcat has three connectors, Blocking I/O (BIO) which uses one thread per
connection, NIO which maps active connections to threads and APR which uses the
native APR libs to achieve the same goal.

Only the first connector has a problem with HTTP Keep-Alive and thread use and
only the first connector implements disableKeepAlivePercentage. Default value
is 75 (%) meaning that if 75% of the threads are tied to connections any new
connection has Keep-Alive set to off.

Could be interesting for any MPM except event(opt).

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

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org