Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
3.0.0-alpha-1, 1.7.0, 2.5.0
-
None
Description
On this PR Michael Stack rightly pointed out that the thread pool just spins up threads that remain idle for 99.999% of time. Java's ThreadPoolExecutor lets us tune some configurations like the following for releasing the unused resources
- corePoolSize
- keepAliveTimeMs
- allowCoreThreadTimeOut
Current code makes it difficult to pass along these configurations to the executor service. Refactor and fix the defaults for low-priority thread pools to release resources quicker.