This is an automated email from the ASF dual-hosted git repository.
lide pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 8bc3c4306a4 [fix](ForkJoinPool) we should not new a thread pool every
call (#44891)
8bc3c4306a4 is described below
commit 8bc3c4306a43f7741ab2eda8e4f02c783b2ab063
Author: camby <[email protected]>
AuthorDate: Tue Dec 3 19:56:29 2024 +0800
[fix](ForkJoinPool) we should not new a thread pool every call (#44891)
### What problem does this PR solve?
come from: https://github.com/apache/doris/pull/34988
Problem:
Use JDK11 and call `show proc "/cluster_health/tablet_health"`
frequently, make large number of ForkJoinPool thread leak
---
.../src/main/java/org/apache/doris/common/proc/TabletHealthProcDir.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/fe/fe-core/src/main/java/org/apache/doris/common/proc/TabletHealthProcDir.java
b/fe/fe-core/src/main/java/org/apache/doris/common/proc/TabletHealthProcDir.java
index 9e91eb88148..6c36a926d08 100644
---
a/fe/fe-core/src/main/java/org/apache/doris/common/proc/TabletHealthProcDir.java
+++
b/fe/fe-core/src/main/java/org/apache/doris/common/proc/TabletHealthProcDir.java
@@ -67,7 +67,7 @@ public class TabletHealthProcDir implements ProcDirInterface {
private Env env;
- private ForkJoinPool taskPool = new ForkJoinPool();
+ private static ForkJoinPool taskPool = new ForkJoinPool();
public TabletHealthProcDir(Env env) {
Preconditions.checkNotNull(env);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]