1

有谁知道为什么我们会得到关联错误?

我有一个服务器和客户端系统,其中来自客户端的参与者通过 Akka 远程处理向服务器参与者发送消息,并且服务器和客户端都在同一台本地机器上,但使用不同的端口。

服务器客户端的错误:

[ERROR][12/1/2020 3:59:28 AM][Thread 0021][akka.tcp://RemoteSystem@localhost:8876/system/transports/akkaprotocolmanager.tcp.0/akkaProtocol-tcp%3A%2F%2FRemoteSystem%40localhost%3A8080-1] No response from remote for outbound association. Associate timed out after [15000 ms].
[WARNING][12/1/2020 3:59:28 AM][Thread 0019][remoting (akka://RemoteSystem)] Tried to associate with unreachable remote address [akka.tcp://RemoteSystem@localhost:8080]. Address is now gated for 5000 ms, all messages to this address will be delivered to dead letters. Reason: [Association failed with akka.tcp://RemoteSystem@localhost:8080] Caused by: [System.TimeoutException: No response from remote for outbound association. Associate timed out after [15000 ms].   
   at Akka.Remote.Transport.AkkaProtocolTransport.Associate(Address remoteAddress, Nullable`1 refuseUid)
   at Akka.Remote.EndpointWriter.AssociateAsync()]

服务器端错误:

[ERROR][12/1/2020 3:53:29 AM][Thread 0020][akka.tcp://RemoteSystem@localhost:8080/system/transports/akkaprotocolmanager.tcp.0/akkaProtocol-tcp%3A%2F%2FRemoteSystem%40%5B%3A%3Affff%3A127.0.0.1%5D%3A57235-1] No response from remote for 
inbound association. Handshake timed out after [15000] ms

我的理解是从客户端到服务器没有实现握手。

当我与 20 个客户端参与者一起向服务器发送消息并等待回复时,它可以工作,但超过 25 个它就不起作用。

任何帮助将不胜感激。

4

0 回答 0