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

HTHou pushed a commit to branch codex/cherry-pick-16724-dev-1.3
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit 6eec49a12505a42b8915d3c176edbd31cebc8481
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 af9e40ffa73..06b61fd9283 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
@@ -868,7 +868,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