Sized the app buffers more appropriately
authorfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 28 Feb 2007 01:06:46 +0000 (01:06 +0000)
committerfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 28 Feb 2007 01:06:46 +0000 (01:06 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@512535 13f79535-47bb-0310-9956-ffa450edef68

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

index d60e3d3..746117e 100644 (file)
@@ -65,13 +65,13 @@ public class SocketProperties {
      * The application read buffer size in bytes.\r
      * Default value is rxBufSize\r
      */\r
-    protected int appReadBufSize = rxBufSize;\r
+    protected int appReadBufSize = 8192;\r
     \r
     /**\r
      * The application write buffer size in bytes\r
      * Default value is txBufSize\r
      */\r
-    protected int appWriteBufSize = txBufSize;\r
+    protected int appWriteBufSize = 8192;\r
     \r
     /**\r
      * NioChannel pool size for the endpoint,\r
index fe7024d..bc80e44 100644 (file)
       </attribute>
       <attribute name="socket.appReadBufSize" required="false">
         <p>Each connection that is opened up in Tomcat get associated with a read and a write ByteBuffer
-           This attribute controls the size of these buffers. By default this read buffer is sized to match the 
-           socket read buffer (SO_RCVBUF) value, but can be sized separately.
-           For an extreme amount of keep alive connections, decrease this number of increase your heap size.</p>
+           This attribute controls the size of these buffers. By default this read buffer is sized at 8192 bytes.
+           For lower concurrency, you can increase this to buffer more data.
+           For an extreme amount of keep alive connections, decrease this number or increase your heap size.</p>
       </attribute>
       <attribute name="socket.appWriteBufSize" required="false">
         <p>Each connection that is opened up in Tomcat get associated with a read and a write ByteBuffer
-           This attribute controls the size of these buffers. By default this write buffer is sized to match the 
-           socket read buffer (SO_SNDBUF) value, but can be sized separately.
-           For an extreme amount of keep alive connections, decrease this number of increase your heap size.</p>
+           This attribute controls the size of these buffers. By default this write buffer is sized at 8192 bytes.
+           For low concurrency you can increase this to buffer more response data.
+           For an extreme amount of keep alive connections, decrease this number or increase your heap size.</p>
       </attribute>
       <attribute name="socket.bufferPool" required="false">
         <p>The Nio connector uses a class called NioChannel that holds elements linked to a socket.