Skip to content

Commit

Permalink
[backend]: adjust the thread pool
Browse files Browse the repository at this point in the history
  • Loading branch information
zhou-yinyuan committed Oct 12, 2024
1 parent c49b66a commit 4d30302
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/src/main/java/heartbeat/config/ThreadPoolConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ public class ThreadPoolConfig {
public ThreadPoolTaskExecutor taskExecutor() {
ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor();
executor.setRejectedExecutionHandler(new ThreadPoolExecutor.CallerRunsPolicy());
executor.setCorePoolSize(40);
executor.setMaxPoolSize(200);
executor.setCorePoolSize(20);
executor.setMaxPoolSize(100);
executor.setQueueCapacity(1000);
executor.setKeepAliveSeconds(60);
executor.setThreadNamePrefix("Heartbeat-");
Expand Down

0 comments on commit 4d30302

Please sign in to comment.