成长值: 249 签到天数: 4708 天 [LV.Master]伴坛终老
|
发表于 2024/6/2 05:28
|
显示全部楼层
|Google Chrome 125.0.0.0 |Windows 10
和官方沟通的内容,,,目前还没回复我
服务器只有4G可用内存,内存不足导致的,客户端会发生网络超时。不知道有没有方法设置超时时间?出现这个原因是系统正在使用“优化内存”,把不活跃的内存迁移到pagefile.sys,此时会卡住0.5s-1s左右,然后七日杀就所有玩家掉线了,有没有设置修改超时时间?或者检测到正在使用虚拟内存迁移时不让所有玩家掉线?总不可能让升级服务器内存吧,这会带来更多的服务器价格成本,l4d2他就能在200MB的内存下运行服务端
好像是系统在内存迁移到虚拟内存优化的时候,,,就会提示网络超时全服掉线,看起来只能升级内存来解决,或者开发者修复一下,就是在系统进行pagefile.sys的时候
服务器管理员在客户端运行mem命令的时候也会导致网络超时,所有玩家都会掉线
在4G的服务器上运行专用服务器容易全服所有玩家掉线,提示网络超时
可能是内存不足,进程申请不到可用内存空间导致的?已经设置了10G的虚拟内存,不应该出现这种情况,一旦出现这个掉线后,玩家在上游戏一样提示网络超时,必须重启服务器服务端后才能恢复游戏
这是服务端日志,一些ID和ip信息已经打码
2024-06-02T03:44:01 1067.648 WRN NET: LiteNetLib: SendData requested for unknown client EntityID=175, PltfmId='Steam_xxxxxxxxxxxxxxxxx', CrossId='EOS_xxxxxxxxxxxxxxxxxxxxxxxx', OwnerID='Steam_xxxxxxxxxxxxxxxxx', PlayerName='玩家2', ClientNumber='3'
2024-06-02T03:44:01 1067.660 INF NET: LiteNetLib: Client disconnect from: 171.110.21.1:58362 / 1 (Timeout)
2024-06-02T03:44:01 1067.687 INF NET: LiteNetLib: TimeSinceLastPacket: 12986
2024-06-02T03:44:01 1067.690 INF NET: LiteNetLib: Client disconnect from: 117.140.11.1:19772 / 0 (Timeout)
2024-06-02T03:44:01 1067.690 INF NET: LiteNetLib: TimeSinceLastPacket: 12917
2024-06-02T03:44:01 1067.709 INF [NET] PlayerDisconnected EntityID=175, PltfmId='Steam_xxxxxxxxxxxxxxxxx', CrossId='EOS_xxxxxxxxxxxxxxxxxxxxxxxx', OwnerID='Steam_xxxxxxxxxxxxxxxxx', PlayerName='玩家2', ClientNumber='3'
2024-06-02T03:44:01 1067.839 INF DynamicMusic: 175 successfully removed from Bloodmoon state cache
2024-06-02T03:44:02 1067.883 INF Exited thread NCS_Reader_1_0
2024-06-02T03:44:02 1067.887 WRN Client disconnected from dy mesh: Id: 175 Total: 1
2024-06-02T03:44:02 1067.891 INF Exited thread NCS_Writer_1_0
2024-06-02T03:44:02 1067.894 WRN Client disconnect complete for 175 Total: 1
2024-06-02T03:44:02 1067.894 INF Player disconnected: EntityID=175, PltfmId='Steam_xxxxxxxxxxxxxxxxx', CrossId='EOS_xxxxxxxxxxxxxxxxxxxxxxxx', OwnerID='Steam_xxxxxxxxxxxxxxxxx', PlayerName='玩家2', ClientNumber='3'
2024-06-02T03:44:02 1067.895 INF Exited thread NCS_Reader_1_1
2024-06-02T03:44:02 1067.899 INF Exited thread NCS_Writer_1_1
2024-06-02T03:44:02 1068.097 WRN NET: LiteNetLib: SendData requested for unknown client EntityID=171, PltfmId='Steam_xxxxxxxxxxxxxxxxx', CrossId='EOS_xxxxxxxxxxxxxxxxxxxxxxxx', OwnerID='Steam_xxxxxxxxxxxxxxxxx', PlayerName='玩家1', ClientNumber='2'
2024-06-02T03:44:02 1068.100 INF Exited thread NCS_Writer_0_0
2024-06-02T03:44:02 1068.100 INF Exited thread NCS_Reader_0_0
2024-06-02T03:44:02 1068.244 INF GMSG: Player '玩家2' left the game
2024-06-02T03:44:02 1068.366 INF [NET] PlayerDisconnected EntityID=171, PltfmId='Steam_xxxxxxxxxxxxxxxxx', CrossId='EOS_xxxxxxxxxxxxxxxxxxxxxxxx', OwnerID='Steam_xxxxxxxxxxxxxxxxx', PlayerName='玩家1', ClientNumber='2'
2024-06-02T03:44:02 1068.366 INF DynamicMusic: 171 successfully removed from Bloodmoon state cache
2024-06-02T03:44:02 1068.366 WRN Client disconnected from dy mesh: Id: 171 Total: 1
2024-06-02T03:44:02 1068.366 WRN Client disconnect complete for 171 Total: 1
2024-06-02T03:44:02 1068.366 INF Player disconnected: EntityID=171, PltfmId='Steam_xxxxxxxxxxxxxxxxx', CrossId='EOS_xxxxxxxxxxxxxxxxxxxxxxxx', OwnerID='Steam_xxxxxxxxxxxxxxxxx', PlayerName='玩家1', ClientNumber='2'
2024-06-02T03:44:02 1068.366 INF Exited thread NCS_Reader_0_1
2024-06-02T03:44:02 1068.367 INF Exited thread NCS_Writer_0_1
2024-06-02T03:44:02 1068.368 INF GMSG: Player '玩家1' left the game
2024-06-02T03:44:02 1068.378 WRN [Steamworks.NET] Authentication callback failed: User not found. ID: 76561198353079763
2024-06-02T03:44:02 1068.379 WRN [Steamworks.NET] Authentication callback failed: User not found. ID: 76561198122387352
2024-06-02T03:44:02 1068.396 WRN [EOS] [LogEOSSessions - Warning] Backend registered players out of sync with client
2024-06-02T03:44:02 1068.396 WRN [EOS] [LogEOSSessions - Warning] Backend total players out of sync with client
2024-06-02T03:44:02 1068.396 WRN [EOS] [LogEOSSessions - Warning] Backend open connections out of sync with client
2024-06-02T03:44:02 1068.400 INF NET: LiteNetLib: MT: Client disconnect from: 171.110.21.1:58362 / 1 (Timeout)
2024-06-02T03:44:02 1068.401 INF NET: LiteNetLib: MT: Client disconnect from: 117.140.11.1:19772 / 0 (Timeout)
2024-06-02T03:44:02 1068.404 ERR DisconnectClient: Player EOS_xxxxxxxxxxxxxxxxxxxxxxxx not found
2024-06-02T03:44:02 1068.417 INF From: UnityEngine.StackTraceUtility:ExtractStackTrace ()
ConnectionManager:DisconnectClient (ClientInfo,bool,bool)
ConnectionManager:<DisconnectClient>b__51_0 (object)
ThreadManager:UpdateMainThreadTasks ()
GameManager:gmUpdate ()
GameManager:Update ()
2024-06-02T03:44:02 1068.417 ERR DisconnectClient: Player EOS_xxxxxxxxxxxxxxxxxxxxxxxx not found
2024-06-02T03:44:02 1068.417 INF From: UnityEngine.StackTraceUtility:ExtractStackTrace ()
ConnectionManager:DisconnectClient (ClientInfo,bool,bool)
ConnectionManager:<DisconnectClient>b__51_0 (object)
ThreadManager:UpdateMainThreadTasks ()
GameManager:gmUpdate ()
GameManager:Update ()
2024-06-02T03:44:04 1070.181 INF [DECO] written 255511, in 189ms
2024-06-02T03:44:04 1070.218 INF Time: 15.51m FPS: 3.50 Heap: 2350.0MB Max: 2415.8MB Chunks: 469 CGO: 104 Ply: 0 Zom: 15 Ent: 0 (81) Items: 0 CO: 0 RSS: 1231.7MB
2024-06-02T03:44:04 1070.266 INF [DECO] write thread 68ms
2024-06-02T03:44:11 1077.345 INF Clearing all pools
这是我使用的服务器配置文件,PREGEN10K进程启动后占用2.8G,Navezgane进程启动后占用1.9G,4G内存的服务器游玩Navezgane会获得更稳定的运行,但是依旧偶尔会出现全服所有玩家掉线问题,Navezgane在4G内存上运行大概每天十次掉线,PREGEN10K基本几分钟就会不间断的掉线
我有2个解决办法
1.提供超时配置文件设置
2.优化减少服务器的服务端内存使用量
升级服务器配置,加大内存会带来更多的费用,我认为应当从服务端去解决内存不足提示“网络超时”的掉线问题
配置文件太长,,发不上来,配置文件里面提示内存优化的相关参数我已经修改数值为最低过了
|
|