Skip to content

Commit

Permalink
[fix](ForkJoinPool) we should not new a thread pool every call (#44891)
Browse files Browse the repository at this point in the history
### What problem does this PR solve?

come from: #34988

Problem:
Use JDK11 and call `show proc "/cluster_health/tablet_health"`
frequently, make large number of ForkJoinPool thread leak
  • Loading branch information
cambyzju authored Dec 3, 2024
1 parent 39d1acd commit 8bc3c43
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8bc3c43

Please sign in to comment.