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
memory leak #136
Comments
Could you send me a memory dump? |
XHRPollingClient contains an packet queue. And if your sending a lot of packets per second via one client you should have a good amount of memory. Also try to reduce Configuration.closeTimeout and Configuration.heartbeatTimeout values. Then disconnect process will occurs much faster |
I just send a packet per two second. not a lot of per second .I do not know why?
|
not a lot, you right. And the client got all the packets? If server sending a packet it polls it from queue |
the client kept all the packets send before . it seems not poll the message from queue. |
As you can see XHRPollingTransport.onDisconnect is implemented |
have you resolved this issue? |
it not works after reduce Configuration.closeTimeout and Configuration.heartbeatTimeout values. in my code i do this: @OnDisconnect and another thread send message like this: |
you could try to do follow:
Take a memory dump and check for the hanged XHRPollingClient instances or packets |
Also you could use |
thank you very much! |
Which version did you used? |
1.6.3 before ,now i use 1.6.5 |
i did like this ,client.joinRoom("") ,and i create 5 rooms , 1000 clients of one room.But this is another problem! |
in 1.6.5 rooms handling was optimized |
Any progress? |
i check the packages of all queue,if the count of package more than 100,i would remove the client. it seems work.
|
Please try the latest version from master, a problem with packets decoding been there. May be it helps |
thank you very much! i will have a try.
|
oh, sorry! this change made for 1.7 version |
@topiman so you did a some kind of patch? Could you send me a diff if so? |
i check the packages of all queue,if the count of package more than 100,i clear the xhr queue , and call onDisconnect method ,but it not works . it still has the problem. |
Could you write some kind of test to reproduce it? |
i use netty-socketio 1.6.5 .
i found a memory leak ,com.corundumstudio.socketio.transport.XHRPollingClient has not be GC.
i use Eclipse Memory Analyzer ,the description is:
One instance of "com.corundumstudio.socketio.transport.XHRPollingClient" loaded by "sun.misc.Launcher$AppClassLoader @ 0x7000b7678" occupies 342,686,224 (59.63%) bytes.
The text was updated successfully, but these errors were encountered: