iohao / ioGame

无锁异步化、事件驱动架构设计的 java netty 网络编程框架; 轻量级,无需依赖任何第三方中间件或数据库就能支持集群、分布式; 适用于网络游戏服务器、物联网、内部系统及各种需要长连接的场景; 通过 ioGame 你可以很容易的搭建出一个集群无中心节点、集群自动化、分布式的网络服务器;FXGL、Unity、UE、Cocos Creator、Godot、Netty、Protobuf、webSocket、tcp、socket;java Netty 游戏服务器框架;

Home Page:http://game.iohao.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

大厅业务,大量玩家进进出出,一段时间后 服务出现异常

wangyongsen opened this issue · comments

你的问题

大厅功能上线之后,一个房间容纳100人,不断有玩家进进出出,做了视觉共享,有玩家移动就会推送移动消息给房间内的所有人,在一段时间之后,在跑了一天多之后 服务就出现异常,不断报以下的错误,并且 无法创建连接

2023-10-31 17:43:30,483 ERROR 409725 --- [,,,shandong-game][R=225] com.iohao.game.bolt.broker.core.client.BrokerClientItem : Rpc invocation timeout[responseCommand TIMEOUT]! the address is 172.30.97.39:10200
com.alipay.remoting.rpc.exception.InvokeTimeoutException: Rpc invocation timeout[responseCommand TIMEOUT]! the address is 172.30.97.39:10200
at com.alipay.remoting.rpc.RpcResponseResolver.preProcess(RpcResponseResolver.java:83)
at com.alipay.remoting.rpc.RpcResponseResolver.resolveResponseObject(RpcResponseResolver.java:54)
at com.alipay.remoting.rpc.RpcRemoting.invokeSync(RpcRemoting.java:186)
at com.alipay.remoting.rpc.RpcClient.invokeSync(RpcClient.java:253)
at com.iohao.game.bolt.broker.core.client.BrokerClientItem.invokeSync(BrokerClientItem.java:113)
at com.iohao.game.bolt.broker.core.client.BrokerClientItem.invokeSync(BrokerClientItem.java:117)
at com.iohao.game.bolt.broker.core.client.BrokerClientItem.invokeExternalModuleCollectMessage(BrokerClientItem.java:223)
at com.iohao.game.bolt.broker.client.kit.ExternalCommunicationKit.setAttachment(ExternalCommunicationKit.java:138)
at com.shandong.game.biz.service.game.BaseGameService.enter(BaseGameService.java:118)
at com.shandong.game.web.action.PubHallAction.enter(PubHallAction.java:44)
at com.shandong.game.web.action.PubHallActionMethodAccess.invoke(Unknown Source)
at com.iohao.game.action.skeleton.core.flow.interal.DefaultActionMethodInvoke.invoke(DefaultActionMethodInvoke.java:46)
at com.iohao.game.action.skeleton.core.DefaultActionCommandFlowExecute.execute(DefaultActionCommandFlowExecute.java:62)
at com.iohao.game.action.skeleton.core.ActionCommandHandler.handler(ActionCommandHandler.java:41)
at com.iohao.game.action.skeleton.core.BarSkeleton.handle(BarSkeleton.java:106)
at com.iohao.game.bolt.broker.core.common.processor.hook.DefaultRequestMessageClientProcessorHook.lambda$processLogic$0(DefaultRequestMessageClientProcessorHook.java:76)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:833)

  • ioGame version: 17.1.56

请提供一个可复现 demo 和复现步骤。