From: fhanik Date: Sun, 25 Feb 2007 23:27:00 +0000 (+0000) Subject: More documentation, added acceptorThreadCount as a selection X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=5aec8f2a42b98e56f308b11aab7e8b81c6fec907;p=tomcat7.0 More documentation, added acceptorThreadCount as a selection git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@511657 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/tomcat/util/net/NioEndpoint.java b/java/org/apache/tomcat/util/net/NioEndpoint.java index 943de1eee..ee76cc802 100644 --- a/java/org/apache/tomcat/util/net/NioEndpoint.java +++ b/java/org/apache/tomcat/util/net/NioEndpoint.java @@ -379,7 +379,7 @@ public class NioEndpoint { /** * Acceptor thread count. */ - protected int acceptorThreadCount = 0; + protected int acceptorThreadCount = 1; public void setAcceptorThreadCount(int acceptorThreadCount) { this.acceptorThreadCount = acceptorThreadCount; } public int getAcceptorThreadCount() { return acceptorThreadCount; } diff --git a/webapps/docs/config/http.xml b/webapps/docs/config/http.xml index 51e579859..901558834 100644 --- a/webapps/docs/config/http.xml +++ b/webapps/docs/config/http.xml @@ -395,6 +395,25 @@ the -Djava.net.preferIPv4Stack=true value to your command line

+ +

The number of threads to be used to accept connections. Increase this value on a multi CPU machine, + although you would never really need more than 2. Also, with a lot of non keep alive connections, + you might want to increase this value as well. Default value is 1.

+
+ +

The number of threads to be used to run for the polling events. Default value is 1. + Can't see a reason to go above that. But experiment and find your own results.

+
+ +

The time in milliseconds to timeout on a select() for the poller. + This value is important, since connection clean up is done on the same thread, so dont set this + value to an extremely high one.

+
+ +

Whether to allow comet servlets or not, Default value is true.

+
+ +

Boolean value, whether to use direct ByteBuffers or java mapped ByteBuffers. Default is true