This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch 8.5.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/8.5.x by this push: new e154f15799 Increase default buffer size for cluster replication messages e154f15799 is described below commit e154f157996aa3e3e63091a13c1d528833119ce8 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 2878a25eea..54a9825630 100644 --- a/webapps/docs/changelog.xml +++ b/webapps/docs/changelog.xml @@ -139,6 +139,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 8.5.79 (schultz)" rtext="release in progress"> <subsection name="Catalina"> diff --git a/webapps/docs/config/cluster-receiver.xml b/webapps/docs/config/cluster-receiver.xml index 9bc1b5350d..1533aac59e 100644 --- a/webapps/docs/config/cluster-receiver.xml +++ b/webapps/docs/config/cluster-receiver.xml @@ -118,7 +118,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. @@ -129,7 +129,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 66f9707eb0..516a79210b 100644 --- a/webapps/docs/config/cluster-sender.xml +++ b/webapps/docs/config/cluster-sender.xml @@ -91,7 +91,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. @@ -99,7 +99,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-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org