您的位置:首页技术文章
文章详情页

java - GRPC服务不稳定

【字号: 日期:2023-11-07 11:16:26浏览:38作者:猪猪

问题描述

io.grpc.StatusRuntimeException: UNKNOWN: Exception calling application: <_Rendezvous of RPC that terminated with (StatusCode.UNAVAILABLE, Endpoint read failed)>

RPC failed: Status{code=UNAVAILABLE, description=null, cause=java.net.ConnectException: 拒绝连接:

调用远程服务 GRPC不定期报异常

请问是什么情况???

问题解答

回答1:

每次new了stub 建立了过多的连接 没有复用 导致错误改为static 问题解决

标签: java
相关文章: