-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
big bug 内存泄漏,2.0.12版本仍然未解决 #1000
Comments
能否有一些日志贴出来(究竟事怎样的内存斜口)、然后能否有工程再现该错误 |
同样的问题,出现内存泄漏 |
每次建立连接AuthorizeHandler这个类中的channelRead方法两次,导致channelRead调用本类的authorize方法每次都会往clientsBox中put一个ClientHead,但是在连接断开时又只remove一个,导致加二减一情况出现,clientsBox无限膨胀导致内存溢出,麻烦作者看到解决一下,谢谢,主要原因是channelRead重复调用 |
@liguochuan00 > 能否有一些日志贴出来(究竟事怎样的内存斜口)、然后能否有工程再现该错误 兄弟你解决了吗 |
@SunnyBoyLJQ 有没有泄露的测试代码,看了下,应是没有保持会话的问题。sessionId重复创建新的导致clientsBox一直在put。clientHead里面有超时关闭。应该没多大问题。突然的大量并发可能会出问题。 |
@SunnyBoyLJQ 如果你用的是js的client开一下withCredentials: true 传输跨域的cookie。 |
2.0.11,2.0.12版本都仍然存在内存泄漏,链接断开后packet仍然在不断地增加
The text was updated successfully, but these errors were encountered: