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

qiaojialin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-iotdb.git


The following commit(s) were added to refs/heads/master by this push:
     new 1a66db6  [IOTDB-701]Add feature to set heap size by system total 
memory when starts (#1254)
1a66db6 is described below

commit 1a66db6a44a9b5cd3e4c5cde78d0843c12b50565
Author: Zhang.Jinrui <[email protected]>
AuthorDate: Fri May 29 10:13:15 2020 +0800

    [IOTDB-701]Add feature to set heap size by system total memory when starts 
(#1254)
    
    * add feature to set heap size by system total memory when starts
---
 server/src/assembly/resources/conf/iotdb-env.sh | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/server/src/assembly/resources/conf/iotdb-env.sh 
b/server/src/assembly/resources/conf/iotdb-env.sh
index 8eb288c..b6f3db4 100755
--- a/server/src/assembly/resources/conf/iotdb-env.sh
+++ b/server/src/assembly/resources/conf/iotdb-env.sh
@@ -159,6 +159,12 @@ fi
 
 calculate_heap_sizes
 
+## Set heap size by percentage of total memory
+#max_percentage=90
+#min_percentage=50
+#MAX_HEAP_SIZE="`expr $system_memory_in_mb \* $max_percentage / 100`M"
+#HEAP_NEWSIZE="`expr $system_memory_in_mb \* $min_percentage / 100`M"
+
 # Maximum heap size
 #MAX_HEAP_SIZE="2G"
 # Minimum heap size

Reply via email to