Springcloud configuration hot update has pit records

Software version

spring-boot-starter-parent 1.5.6.RELEASE
spring.cloud.version Dalston.RELEASE

  

Configuration center file modification

Invoke service configuration update

curl-X POST http://192.168.108.199:6130/refresh

report exception

{
    "timestamp": 1521278382874,
    "status": 500,
    "error": "Internal Server Error",
    "exception": "java.util.concurrent.RejectedExecutionException",
    "message": "Request processing failed; nested exception is java.util.concurrent.RejectedExecutionException: Task java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask@778db5a5 rejected from java.util.concurrent.ScheduledThreadPoolExecutor@3318012b[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 23]",
    "path": "/refresh"
}

The reason is related to eureka monitoring and checking the thread pool size 

The solution is to turn off the healthcheck health check or set the health check thread pool size. 

 

eureka:
  client:
    healthcheck:
      enabled: false
    heartbeat-executor-thread-pool-size: 5

 

Other solutions to be confirmed

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326069716&siteId=291194637