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

dataroaring pushed a commit to branch branch-1.2-lts
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-1.2-lts by this push:
     new 2ed8f15ba8 (bin) do not set heap limit for tcmalloc until doris does 
not allocates large unused memory
2ed8f15ba8 is described below

commit 2ed8f15ba8a50d53862f7e4780717f3f97a98a03
Author: Yongqiang YANG <dataroar...@gmail.com>
AuthorDate: Fri Oct 28 08:58:14 2022 +0000

    (bin) do not set heap limit for tcmalloc until doris does not allocates 
large unused memory
    
    We set heap limit for tcmalloc to avoid oom introduced by tcmalloc which 
allocates memory for cache
    even free memory of a machine is little. However, doris allocates large 
memory unused in some
    cases, so tcmalloc would throw an oom exception even ther are a lot free 
memory in a machine.
    
    We can set the limit after we fix the problem again.
---
 bin/start_be.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/start_be.sh b/bin/start_be.sh
index 49d231e1c3..3f39544878 100755
--- a/bin/start_be.sh
+++ b/bin/start_be.sh
@@ -249,7 +249,7 @@ set_tcmalloc_heap_limit() {
     export TCMALLOC_HEAP_LIMIT_MB=${mem_limit_mb}
 }
 
-set_tcmalloc_heap_limit || exit 1
+# set_tcmalloc_heap_limit || exit 1
 
 ## set hdfs conf
 export LIBHDFS3_CONF="${DORIS_HOME}/conf/hdfs-site.xml"


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to