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

spricoder pushed a commit to branch feature/memory_test
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/feature/memory_test by this 
push:
     new e3da536eedf Add Small Memory Strict
e3da536eedf is described below

commit e3da536eedf1468d4c3e3d730ea594848991ca6d
Author: spricoder <[email protected]>
AuthorDate: Thu Feb 20 10:38:34 2025 +0800

    Add Small Memory Strict
---
 iotdb-core/datanode/src/assembly/resources/conf/datanode-env.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/iotdb-core/datanode/src/assembly/resources/conf/datanode-env.sh 
b/iotdb-core/datanode/src/assembly/resources/conf/datanode-env.sh
index f30248bf6e9..926b7093552 100755
--- a/iotdb-core/datanode/src/assembly/resources/conf/datanode-env.sh
+++ b/iotdb-core/datanode/src/assembly/resources/conf/datanode-env.sh
@@ -140,7 +140,7 @@ calculate_memory_sizes()
     on_heap_memory_size_in_mb2=`expr $on_heap_memory_size_in_mb / 2`
 
     ON_HEAP_MEMORY="${on_heap_memory_size_in_mb}M"
-    ON_HEAP_MEMORY2="${on_heap_memory_size_in_mb2}M"
+    ON_HEAP_MEMORY_S="${on_heap_memory_size_in_mb2}M"
     OFF_HEAP_MEMORY="${off_heap_memory_size_in_mb}M"
 }
 
@@ -311,7 +311,7 @@ else
 fi
 
 IOTDB_JMX_OPTS="$IOTDB_JMX_OPTS -Diotdb.jmx.local=$JMX_LOCAL"
-IOTDB_JMX_OPTS="$IOTDB_JMX_OPTS -Xms${ON_HEAP_MEMORY2}"
+IOTDB_JMX_OPTS="$IOTDB_JMX_OPTS -Xms${ON_HEAP_MEMORY_S}"
 IOTDB_JMX_OPTS="$IOTDB_JMX_OPTS -Xmx${ON_HEAP_MEMORY}"
 IOTDB_JMX_OPTS="$IOTDB_JMX_OPTS -XX:MaxDirectMemorySize=${OFF_HEAP_MEMORY}"
 IOTDB_JMX_OPTS="$IOTDB_JMX_OPTS 
-Djdk.nio.maxCachedBufferSize=${MAX_CACHED_BUFFER_SIZE}"
@@ -345,6 +345,6 @@ IOTDB_JMX_OPTS="$IOTDB_JMX_OPTS -XX:+SafepointTimeout"
 # IOTDB_JMX_OPTS="$IOTDB_JMX_OPTS -XX:+HeapDumpOnOutOfMemoryError 
-XX:HeapDumpPath=${heap_dump_dir}/datanode_heapdump.hprof"
 
 
-echo "DataNode on heap memory size = ${ON_HEAP_MEMORY}B, off heap memory size 
= ${OFF_HEAP_MEMORY}B"
+echo "DataNode on heap memory size = ${ON_HEAP_MEMORY}B, min heap memory size 
= ${ON_HEAP_MEMORY_S}B, off heap memory size = ${OFF_HEAP_MEMORY}B"
 echo "If you want to change this configuration, please check 
conf/datanode-env.sh."
 

Reply via email to