This repository has been archived by the owner on Sep 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 840
线上服务使用go-socket.io,遇到消耗大量内存 #172
Comments
还有就是,namespace 不能用额, 然后 被我们自己修复增加了个方法 |
1 Rewrite from base. It doesn't use any Node.js code.
2 One goroutine per connection.
3 Please try v1.4 branch.
…On Fri, Mar 24, 2017 at 11:44 AM, pathbox ***@***.***> wrote:
还有就是,namespace 不能用额, 然后 被我们自己修复增加了个方法
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#172 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAeTju1K9AwtK6zuMAOofhYwXP4WxAObks5ro554gaJpZM4MoDvo>
.
|
Thank you very much |
Today, I find the reason that leads to memory leak, it is not the go-socket.io. go-socket.io is working well. |
I met the same problem,ask what is the reason? |
@fnf521 The reason is not from |
@fnf521 I have also talked about that in my comments in here @googollee I think we have to follow their findings and make it integrated into iris-go. Check it out: https://medium.freecodecamp.org/million-websockets-and-go-cc58418460bb from what I understand now, there are 2 major caveats:
|
Closed
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
为了兼容以前的服务,以前是用socket.io 写的,和前端配合。但是,服务撑不住了,改用go-socket.io重构了代码。 现在的情况是,1w+ 的socket connection 消耗了14G内存。 就是用普通的go websocket 方案,也不会消耗这么多内存。
所以,想问的问题有两个:
The text was updated successfully, but these errors were encountered: