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
WebSocket Module memory leak #3236
Comments
You should check if the connections are still open at the OS level (e.g., using netstat). Also, there is a rpc command to list the websocket connections, use it to see what gives back. |
Yes, sorry forgot to mention that the TCP connection at the OS level is closed. Also, command:
showing an empty output. |
Can you try with git master branch or using the patch from the commit referenced above? |
@miconda - works like a charm now. Thank's a lot! |
No issues so far, everything works as expected. Thanks, Daniel for looking into that. |
Description
By using the WebSocket module we noticed that the memory on the server keeps increasing daily even if the number of registered devices is decreasing
Troubleshooting
Reproduction
Connect to the server through the wss and then disable the network adapter.
Debugging Data
If the TCP connection is closed forcefully (tested by disabling network adapter) then the number of current wss connections is not decreasing:
The same happens with the allocated shared memory:
wsconn_add(198) - this value is not decreasing.
Everything is working properly if the TCP connection is properly closed.
XHTTP Request Route:
TCP Settings:
The text was updated successfully, but these errors were encountered: