大执呀 2021-12-21 09:28 采纳率: 0%
浏览 582

SpringCloud跨服务调用接口遇到feign.RetryableException: Read timed out executing POST X 问题

现象:
SpringCloud跨服务调用接口时遇到:
feign.RetryableException: Read timed out executing POST XXX :
at feign.FeignException.errorExecuting(FeignException.java:213)
at feign.FeignException.errorExecuting(FeignException.java:213)
Caused by: java.net.SocketTimeoutException: Read timed out

出现频率:查看日志发现不会每天都出现这个异常,但是一报就会一直出现 (以下是12.01-12.21出现频率)
2021-12-01.0.log (匹配842次)
2021-12-02.0.log (匹配772次)
2021-12-03.0.log (匹配714次)
2021-12-04.0.log (匹配506次)

当前配置:

  hystrix:
  command:
    default:
      execution:
        timeout:
          enabled: true
        isolation:
          thread:
            timeoutInMilliseconds: 310000
ribbon:
  ReadTimeout: 120000
  ConnectTimeout: 10000
  • 写回答

3条回答 默认 最新

  • 关注

    有没有检查一下内存,会不会内存不足,或者网络不稳定等原因呢?

    评论

报告相同问题?

问题事件

  • 创建了问题 12月21日