Author: fhanik
Date: Sun Feb 25 15:27:00 2007
New Revision: 511657

URL: http://svn.apache.org/viewvc?view=rev&rev=511657
Log:
More documentation, added acceptorThreadCount as a selection

Modified:
    tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java
    tomcat/tc6.0.x/trunk/webapps/docs/config/http.xml

Modified: tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java
URL: 
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java?view=diff&rev=511657&r1=511656&r2=511657
==============================================================================
--- tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java 
(original)
+++ tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java Sun 
Feb 25 15:27:00 2007
@@ -379,7 +379,7 @@
     /**
      * Acceptor thread count.
      */
-    protected int acceptorThreadCount = 0;
+    protected int acceptorThreadCount = 1;
     public void setAcceptorThreadCount(int acceptorThreadCount) { 
this.acceptorThreadCount = acceptorThreadCount; }
     public int getAcceptorThreadCount() { return acceptorThreadCount; }
 

Modified: tomcat/tc6.0.x/trunk/webapps/docs/config/http.xml
URL: 
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/webapps/docs/config/http.xml?view=diff&rev=511657&r1=511656&r2=511657
==============================================================================
--- tomcat/tc6.0.x/trunk/webapps/docs/config/http.xml (original)
+++ tomcat/tc6.0.x/trunk/webapps/docs/config/http.xml Sun Feb 25 15:27:00 2007
@@ -395,6 +395,25 @@
     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>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to