-
HI
It seems to happen when we call
Can anyone help what's the issue? Any solutions? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
This indicates that you might be abusing the You can specify a different pool in |
Beta Was this translation helpful? Give feedback.
This indicates that you might be abusing the
ForkJoinPool
shared in the JVM. That has a limit set byForkJoinPool.DEFAULT_COMMON_MAX_SPARES
, where it may create new threads if the workers are blocked. This often happens when futures block on other futures and cause pool starvation. Since the pool is shared, it may be that other parts of your application are abusing it and the extra usage here causes an overflow.You can specify a different pool in
Caffeine.executor
orCacheLoader.asyncReload
which delegates toreload
. Guava defaulted to running on the calling thread, which you can sort of simulate usingCaffeine.executor(Runnable::run)
.