2014년 12월 5일 금요일

Re: socket.io over https memory leak issue

Our team is now facing this problem, that a big memory leak, when sixteen users visit our website, the memory was rose 350 MB :(
and the version of the socket.io that we use is 0.9, which version you are using.



0.9.14, Same version as yours. Memory can easily bolw up to 1.8G under 10000 connections.



i know, it might be not what you want to hear, but socket.io has had a 1.0 release, which was a bigger step and should have solved many problems ppl had with 0.9 version, so may be you want to update? i'm not sure about if the maintainer want to support the know as buggy version, you should update anyway soon.



My app is seeing the same problem, memory blowing up after some time and then CPU going to 100%. We've been using socket 1.x since mid August, so that doesn't solve it. Does anyone have any ideas as to what to try next?

For us, a partial fix was to make sure that we only use websockets as a transport mechanism. We are still leaking memory, but much less so than before. If websockets suit your app, the line you need to configure them is this:

io.connect(serverUrl, { transports: ['websocket'] })

I'd like to make sure I get rid of the leak completely though. Any help would be appreciated.



My app is seeing the same problem, memory blowing up after some time and then CPU going to 100%. We've been using socket 1.x since mid August, so that doesn't solve it. Does anyone have any ideas as to what to try next?




Oh sweet! I'll test that and report back.



My app is still leaking. However, it's unclear if the leak originally was due to socket.io or not.


댓글 없음:

댓글 쓰기