|
|
@ -79,8 +79,8 @@ public class ThreadPoolMonitorExecutor implements ApplicationRunner, DisposableB
|
|
|
|
// Execute dynamic thread pool monitoring component.
|
|
|
|
// Execute dynamic thread pool monitoring component.
|
|
|
|
collectScheduledExecutor.scheduleWithFixedDelay(
|
|
|
|
collectScheduledExecutor.scheduleWithFixedDelay(
|
|
|
|
this::scheduleRunnable,
|
|
|
|
this::scheduleRunnable,
|
|
|
|
properties.getInitialDelay(),
|
|
|
|
monitor.getInitialDelay(),
|
|
|
|
properties.getCollectInterval(),
|
|
|
|
monitor.getCollectInterval(),
|
|
|
|
TimeUnit.MILLISECONDS);
|
|
|
|
TimeUnit.MILLISECONDS);
|
|
|
|
if (GlobalThreadPoolManage.getThreadPoolNum() > 0) {
|
|
|
|
if (GlobalThreadPoolManage.getThreadPoolNum() > 0) {
|
|
|
|
log.info("Dynamic thread pool: [{}]. The dynamic thread pool starts data collection and reporting.", getThreadPoolNum());
|
|
|
|
log.info("Dynamic thread pool: [{}]. The dynamic thread pool starts data collection and reporting.", getThreadPoolNum());
|
|
|
|