SuperSocket
SuperSocket copied to clipboard
你好,我遇到一个问题,当服务器运行久了之后会出现这个问题
The session will be closed for 121.3602129 timeout, the session start time: 2021/5/26 4:31:08, last active time: 2021/5/26 4:31:12! 2021-05-26 04:33:14,176 [41] INFO - Session: 863b2101-50de-43a5-968e-a743906a4958/14.116.248.66:12291 The session will be closed for 121.2488908 timeout, the session start time: 2021/5/26 4:31:07, last active time: 2021/5/26 4:31:12! 2021-05-26 04:33:14,189 [51] INFO - Session: e406f74d-8352-481e-a36f-7dbd0914c52d/125.88.188.15:13117 This session was closed for TimeOut! 2021-05-26 04:33:14,189 [21] INFO - Session: 50bd40a6-0194-4bdd-b188-53aa68c30ee6/112.49.224.194:47163 The session will be closed for 128.4373506 timeout, the session start time: 2021/5/26 4:11:18, last active time: 2021/5/26 4:31:05! 2021-05-26 04:33:14,193 [41] INFO - Session: 863b2101-50de-43a5-968e-a743906a4958/14.116.248.66:12291 This session was closed for TimeOut! 2021-05-26 04:33:14,195 [21] INFO - Session: 50bd40a6-0194-4bdd-b188-53aa68c30ee6/112.49.224.194:47163 This session was closed for TimeOut! 2021-05-26 04:39:01,368 [36] INFO - --------------------------------------------------- CPU Usage: 0.31%, Physical Memory Usage: 609,566,720.00, Total Thread Count: 50 AvailableWorkingThreads: 32738, AvailableCompletionPortThreads: 1000 MaxWorkingThreads: 32767, MaxCompletionPortThreads: 1000 MainServer ---------------------------------- Started Time: 2021/5/18 8:58:47 Is Running: True Total Connections: 12 Maximum Allowed Connection Number: 1000 Total Handled Requests: 447,426 Request Handling Speed (#/second): 0 Avialable Sending Queue Items: 244 Total Sending Queue Items: 256
2021-05-26 04:49:01,370 [30] INFO - --------------------------------------------------- CPU Usage: 0.02%, Physical Memory Usage: 357,642,240.00, Total Thread Count: 60 AvailableWorkingThreads: 32728, AvailableCompletionPortThreads: 1000 MaxWorkingThreads: 32767, MaxCompletionPortThreads: 1000 MainServer ---------------------------------- Started Time: 2021/5/18 8:58:47 Is Running: True Total Connections: 17 Maximum Allowed Connection Number: 1000 Total Handled Requests: 447,436 Request Handling Speed (#/second): 0 Avialable Sending Queue Items: 239 Total Sending Queue Items: 256
2021-05-26 04:59:01,376 [26] INFO - --------------------------------------------------- CPU Usage: 0.01%, Physical Memory Usage: 402,489,344.00, Total Thread Count: 73 AvailableWorkingThreads: 32714, AvailableCompletionPortThreads: 1000 MaxWorkingThreads: 32767, MaxCompletionPortThreads: 1000 MainServer ---------------------------------- Started Time: 2021/5/18 8:58:47 Is Running: True Total Connections: 24 Maximum Allowed Connection Number: 1000 Total Handled Requests: 447,446 Request Handling Speed (#/second): 0 Avialable Sending Queue Items: 232 Total Sending Queue Items: 256
2021-05-26 05:09:01,374 [119] INFO - --------------------------------------------------- CPU Usage: 0.05%, Physical Memory Usage: 354,525,184.00, Total Thread Count: 124 AvailableWorkingThreads: 32664, AvailableCompletionPortThreads: 1000 MaxWorkingThreads: 32767, MaxCompletionPortThreads: 1000 MainServer ---------------------------------- Started Time: 2021/5/18 8:58:47 Is Running: True Total Connections: 49 Maximum Allowed Connection Number: 1000 Total Handled Requests: 447,456 Request Handling Speed (#/second): 0 Avialable Sending Queue Items: 207 Total Sending Queue Items: 256
2021-05-26 05:19:01,376 [201] INFO - --------------------------------------------------- CPU Usage: 0.07%, Physical Memory Usage: 354,430,976.00, Total Thread Count: 208 AvailableWorkingThreads: 32580, AvailableCompletionPortThreads: 1000 MaxWorkingThreads: 32767, MaxCompletionPortThreads: 1000 MainServer ---------------------------------- Started Time: 2021/5/18 8:58:47 Is Running: True Total Connections: 91 Maximum Allowed Connection Number: 1000 Total Handled Requests: 447,466 Request Handling Speed (#/second): 0 Avialable Sending Queue Items: 165 Total Sending Queue Items: 256
2021-05-26 05:29:01,382 [290] INFO - --------------------------------------------------- CPU Usage: 0.07%, Physical Memory Usage: 393,015,296.00, Total Thread Count: 292 AvailableWorkingThreads: 32496, AvailableCompletionPortThreads: 1000 MaxWorkingThreads: 32767, MaxCompletionPortThreads: 1000 MainServer ---------------------------------- Started Time: 2021/5/18 8:58:47 Is Running: True Total Connections: 133 Maximum Allowed Connection Number: 1000 Total Handled Requests: 447,476 Request Handling Speed (#/second): 0 Avialable Sending Queue Items: 123 Total Sending Queue Items: 256
开始运行都很正常,但是运行几天后日志显示总线程数越来越高,而且这个时候客户端也无法连接到服务器,但这个问题不是经常出现,有时候服务器连续运行几十天也不会出现,请问是什么原因呢? 版本用的是1.6.6.1
It started running normally, but after running for a few days, the log shows that the total number of threads is getting higher and higher, and the client cannot connect to the server at this time, but this problem does not occur frequently, and sometimes the server runs continuously for dozens of days. It appears, what is the reason? The version used is 1.6.6.1
是否是你的程序在进行数据库存储之类的IO操作, 导致的阻塞。
解决了吗,我也遇到了相同的问题,非常不好复现,
sdk升级到3.0版本就没有这个问题了
。 @.***
------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2022年10月20日(星期四) 上午8:55 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [kerryjiang/SuperSocket] 你好,我遇到一个问题,当服务器运行久了之后会出现这个问题 (#508)
解决了吗,我也遇到了相同的问题,非常不好复现,
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>