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

haonan pushed a commit to branch change_thrift_max_frame_size
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/change_thrift_max_frame_size 
by this push:
     new 93996bf94e4 Add thrift max frame size calculate logic
93996bf94e4 is described below

commit 93996bf94e4a9864af8149344fa5fab1a51dc93d
Author: HTHou <[email protected]>
AuthorDate: Mon Nov 10 14:45:27 2025 +0800

    Add thrift max frame size calculate logic
---
 .../datanode/src/main/java/org/apache/iotdb/db/conf/IoTDBConfig.java | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git 
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/conf/IoTDBConfig.java 
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/conf/IoTDBConfig.java
index 7e4c9639a41..7e208169e9b 100644
--- 
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/conf/IoTDBConfig.java
+++ 
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/conf/IoTDBConfig.java
@@ -807,7 +807,10 @@ public class IoTDBConfig {
   private float udfCollectorMemoryBudgetInMB = (float) (1.0 / 3 * 
udfMemoryBudgetInMB);
 
   /** Unit: byte */
-  private int thriftMaxFrameSize = 0;
+  private int thriftMaxFrameSize =
+      Math.min(
+          64 * 1024 * 1024,
+          (int) Math.min(Runtime.getRuntime().maxMemory() / 64, 
Integer.MAX_VALUE));
 
   private int thriftDefaultBufferSize = RpcUtils.THRIFT_DEFAULT_BUF_CAPACITY;
 

Reply via email to