100% CPU usage with idle websocket #1955
Long story short
Fairly standard websocket server/client setup, but with session, results in 100% CPU usage.
Note that removing the
Low CPU usage when idle
Worker process suddenly goes to 100% CPU usage, confirmed with htop.
Steps to reproduce
Run server + worker and wait a few minutes. Eventually the server process will eat one core. Remove the session.get and it does not happen.
I've reproduced this, so far, on:
I'm still yet to try
The only thing I can find that is even remotely similar is https://groups.google.com/forum/#!topic/libuv/opFk74lww7k .
Otherwise my experience with
The text was updated successfully, but these errors were encountered:
It seems like a problem related to keep-alive. When I tested the code above,
@fafhrd91 No I didn't use python-socketio.
In my case I just started an server with websocket, and diving into
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a [new issue] for related bugs.