From 2cee05c897ea5c40a2020b35ebf0efc1ec05f00f Mon Sep 17 00:00:00 2001
From: fhanik
Date: Wed, 28 Feb 2007 01:06:46 +0000
Subject: [PATCH] Sized the app buffers more appropriately
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 | 4 ++--
webapps/docs/config/http.xml | 12 ++++++------
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/java/org/apache/tomcat/util/net/SocketProperties.java b/java/org/apache/tomcat/util/net/SocketProperties.java
index d60e3d3df..746117e58 100644
--- a/java/org/apache/tomcat/util/net/SocketProperties.java
+++ b/java/org/apache/tomcat/util/net/SocketProperties.java
@@ -65,13 +65,13 @@ public class SocketProperties {
* 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,
diff --git a/webapps/docs/config/http.xml b/webapps/docs/config/http.xml
index fe7024dd8..bc80e4467 100644
--- a/webapps/docs/config/http.xml
+++ b/webapps/docs/config/http.xml
@@ -425,15 +425,15 @@
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.
+ 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.
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.
+ 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.
The Nio connector uses a class called NioChannel that holds elements linked to a socket.
--
2.11.0