Skip to content

Commit

Permalink
Changed core pool size to number of processors
Browse files Browse the repository at this point in the history
  • Loading branch information
Willi Schönborn committed Oct 17, 2016
1 parent 0ffb734 commit 675fa61
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -40,7 +40,7 @@ public static class TaskSchedulerConfiguration {
@Bean(destroyMethod = "shutdown")
@ConditionalOnMissingBean(name = "taskSchedulerService")
public ScheduledExecutorService taskSchedulerService() {
return newScheduledThreadPool(0);
return newScheduledThreadPool(Runtime.getRuntime().availableProcessors());
}

@Bean(name = DEFAULT_TASK_SCHEDULER_BEAN_NAME)
Expand Down

0 comments on commit 675fa61

Please sign in to comment.