Closed AYue-94 closed 1 month ago
We don't need to manage reconnection owerself when using the Nacos client, nacos will deal reconnect itself. for agent, it is the same, nacos version after 2.2.1(https://github.com/alibaba/nacos/pull/9639), it add health check logic, it will cause memory/thread leak.
i will try to fix it, by remove nacos reconnect logic
How many time nacosclient manages reconnection?Is it configurable?
The number of reconnections for nacos client cannot be configured, unlimited retries. See https://github.com/alibaba/nacos/blob/2.2.1/common/src/main/java/com/alibaba/nacos/common/remote/client/RpcClient.java#L280
What happened?
When backend loses contact with naocs, OOM occurs after a period of time:
How can we reproduce it (as minimally and precisely as possible)?
Anything else we need to know?
No response
Sermant version
2.0.0
OS version
MacOS