More documentation, added acceptorThreadCount as a selection
authorfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Sun, 25 Feb 2007 23:27:00 +0000 (23:27 +0000)
committerfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Sun, 25 Feb 2007 23:27:00 +0000 (23:27 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@511657 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/tomcat/util/net/NioEndpoint.java
webapps/docs/config/http.xml

index 943de1e..ee76cc8 100644 (file)
@@ -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; }
 
index 51e5798..9015588 100644 (file)
     the -Djava.net.preferIPv4Stack=true value to your command line</p>
 
     <attributes>
+      <attribute name="acceptorThreadCount" required="false">
+        <p>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.</p>
+      </attribute>
+      <attribute name="pollerThreadCount" required="false">
+        <p>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.</p>
+      </attribute>
+      <attribute name="selectorTimeout" required="false">
+        <p>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.</p>
+      </attribute>
+      <attribute name="useComet" required="false">
+        <p>Whether to allow comet servlets or not, Default value is true.</p>
+      </attribute>
+      
+      
       <attribute name="socket.directBuffer" required="false">
         <p>Boolean value, whether to use direct ByteBuffers or java mapped ByteBuffers. Default is <code>true</code></p>
       </attribute>