xy720 commented on code in PR #46959: URL: https://github.com/apache/doris/pull/46959#discussion_r1915894458
########## fe/fe-core/src/main/java/org/apache/doris/catalog/TabletStatMgr.java: ########## @@ -43,12 +43,24 @@ public class TabletStatMgr extends MasterDaemon { private static final Logger LOG = LogManager.getLogger(TabletStatMgr.class); - private ForkJoinPool taskPool = new ForkJoinPool(Runtime.getRuntime().availableProcessors()); + private ForkJoinPool taskPool = new ForkJoinPool(Math.max(8, Runtime.getRuntime().availableProcessors())); public TabletStatMgr() { super("tablet stat mgr", Config.tablet_stat_update_interval_second * 1000); } + private ForkJoinPool adjustThreadPool(int backendSize) { + int minimunParallelism = Math.max(8, Runtime.getRuntime().availableProcessors()); Review Comment: @SWJTU-ZhangLei 1. You are right, we should use forkJoinPool for multi be task, not use the parallel stream. I will try to fix it. 2. I will also fix it. -- 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