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不定期报异常
请问是什么情况???
2 回答

守候你守候我
TA贡献1802条经验 获得超10个赞
每次new了stub 建立了过多的连接 没有复用 导致错误
改为static 问题解决
是什么意思? 指的是之前都是每次要调用前都去new stub吗, 然后改成使用一个全局变量保存 stub????
添加回答
举报
0/150
提交
取消