spaces-X commented on code in PR #15382:
URL: https://github.com/apache/doris/pull/15382#discussion_r1057455971

##########
bin/start_be.sh:
##########
@@ -233,7 +233,8 @@ set_tcmalloc_heap_limit() {
 ## set hdfs conf
 export LIBHDFS3_CONF="${DORIS_HOME}/conf/hdfs-site.xml"
 
-export 
MALLOC_CONF="percpu_arena:percpu,background_thread:true,metadata_thp:auto,muzzy_decay_ms:30000,dirty_decay_ms:30000,oversize_threshold:0,lg_tcache_max:16"
+# see https://github.com/jemalloc/jemalloc/issues/2366
+export 
JEMALLOC_CONF="percpu_arena:percpu,background_thread:true,metadata_thp:auto,muzzy_decay_ms:30000,dirty_decay_ms:30000,oversize_threshold:0,lg_tcache_max:16,prof:true,prof_prefix:jeprof.out"

Review Comment:
   Only set `prof:true` will not generate dump file unless we call the 
`mallctl` function in the doris code. 
   It seems that it will not affect performance. 
   i think we can keep this item in conf, which needs to be paid attention to 
in subsequent performance tests.
   
   In the nex pr, i will add a http interface to generate the heap dump file at 
runtime and enrich `debug-tool.md`.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


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

Reply via email to