Author: fhanik Date: Tue Feb 27 17:06:46 2007 New Revision: 512535 URL: http://svn.apache.org/viewvc?view=rev&rev=512535 Log: Sized the app buffers more appropriately
Modified: tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/net/SocketProperties.java tomcat/tc6.0.x/trunk/webapps/docs/config/http.xml Modified: tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/net/SocketProperties.java URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/net/SocketProperties.java?view=diff&rev=512535&r1=512534&r2=512535 ============================================================================== --- tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/net/SocketProperties.java (original) +++ tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/net/SocketProperties.java Tue Feb 27 17:06:46 2007 @@ -65,13 +65,13 @@ * The application read buffer size in bytes. * Default value is rxBufSize */ - protected int appReadBufSize = rxBufSize; + protected int appReadBufSize = 8192; /** * The application write buffer size in bytes * Default value is txBufSize */ - protected int appWriteBufSize = txBufSize; + protected int appWriteBufSize = 8192; /** * NioChannel pool size for the endpoint, 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=512535&r1=512534&r2=512535 ============================================================================== --- tomcat/tc6.0.x/trunk/webapps/docs/config/http.xml (original) +++ tomcat/tc6.0.x/trunk/webapps/docs/config/http.xml Tue Feb 27 17:06:46 2007 @@ -425,15 +425,15 @@ </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. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]