You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2022/05/20 11:05:21 UTC

[tomcat] branch 10.0.x updated: Increase default buffer size for cluster replication messages

This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch 10.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/10.0.x by this push:
     new 5163b434f2 Increase default buffer size for cluster replication messages
5163b434f2 is described below

commit 5163b434f297b50d8753265276330ce6ec1cc997
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Fri May 20 12:05:05 2022 +0100

    Increase default buffer size for cluster replication messages
---
 java/org/apache/catalina/tribes/transport/Constants.java | 2 +-
 webapps/docs/changelog.xml                               | 9 +++++++++
 webapps/docs/config/cluster-receiver.xml                 | 4 ++--
 webapps/docs/config/cluster-sender.xml                   | 4 ++--
 4 files changed, 14 insertions(+), 5 deletions(-)

diff --git a/java/org/apache/catalina/tribes/transport/Constants.java b/java/org/apache/catalina/tribes/transport/Constants.java
index fe0515409f..07946d826e 100644
--- a/java/org/apache/catalina/tribes/transport/Constants.java
+++ b/java/org/apache/catalina/tribes/transport/Constants.java
@@ -27,7 +27,7 @@ public class Constants {
 
     public static final String Package = "org.apache.catalina.tribes.transport";
 
-    public static final int DEFAULT_CLUSTER_MSG_BUFFER_SIZE = 43800;
+    public static final int DEFAULT_CLUSTER_MSG_BUFFER_SIZE = 65536;
     public static final int DEFAULT_CLUSTER_ACK_BUFFER_SIZE = 25188;
 
     /*
diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml
index 89df868106..e19eb5a48e 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -143,6 +143,15 @@
       </fix>
     </changelog>
   </subsection>
+  <subsection name="Tribes">
+    <changelog>
+      <fix>
+        Increase the default buffer size for replication messages from 43800 to
+        65536 bytes. This is expected to improve performance for large messages
+        when running on Linux based systems. (markt)
+      </fix>
+    </changelog>
+  </subsection>
 </section>
 <section name="Tomcat 10.0.21 (markt)" rtext="2022-05-16">
   <subsection name="Catalina">
diff --git a/webapps/docs/config/cluster-receiver.xml b/webapps/docs/config/cluster-receiver.xml
index 3911b69221..461dd6c136 100644
--- a/webapps/docs/config/cluster-receiver.xml
+++ b/webapps/docs/config/cluster-receiver.xml
@@ -114,7 +114,7 @@
       Boolean value for the socket OOBINLINE option. Possible values are <code>true</code> or <code>false</code>.
     </attribute>
     <attribute name="rxBufSize" required="false">
-      The receiver buffer size on the receiving sockets. Value is in bytes, the default value is <code>43800</code> bytes.
+      The receiver buffer size on the receiving sockets. Value is in bytes, the default value is <code>65536</code> bytes.
     </attribute>
     <attribute name="txBufSize" required="false">
       The sending buffer size on the receiving sockets. Value is in bytes, the default value is <code>25188</code> bytes.
@@ -125,7 +125,7 @@
     </attribute>
     <attribute name="udpTxBufSize" required="false">
        The send buffer size on the datagram socket.
-       Default value is <code>43800</code> bytes.
+       Default value is <code>65536</code> bytes.
     </attribute>
     <attribute name="soKeepAlive" required="false">
       Boolean value for the socket SO_KEEPALIVE option. Possible values are <code>true</code> or <code>false</code>.
diff --git a/webapps/docs/config/cluster-sender.xml b/webapps/docs/config/cluster-sender.xml
index a539647071..9411ec7fcb 100644
--- a/webapps/docs/config/cluster-sender.xml
+++ b/webapps/docs/config/cluster-sender.xml
@@ -86,7 +86,7 @@
       </attribute>
       <attribute name="txBufSize" required="false">
        The send buffer size on the socket.
-       Default value is <code>43800</code> bytes.
+       Default value is <code>65536</code> bytes.
       </attribute>
       <attribute name="udpRxBufSize" required="false">
         The receive buffer size on the datagram socket.
@@ -94,7 +94,7 @@
       </attribute>
       <attribute name="udpTxBufSize" required="false">
        The send buffer size on the datagram socket.
-       Default value is <code>43800</code> bytes.
+       Default value is <code>65536</code> bytes.
       </attribute>
       <attribute name="directBuffer" required="false">
        Possible values are <code>true</code> or <code>false</code>.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org