Performance issue #1620
Unanswered
pistol-whip
asked this question in
Q&A
Replies: 2 comments 7 replies
-
The most important piece of information is missing: Socket.IO server logs. See the troubleshooting section of the documentation if you don't know how to turn logging on. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Sorry, apparently my upload failed for some reason. Thats about 4 minutes of runtime: |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am experiencing a massive delay in establishing a connection and then frequent stalling.
The setup:
The app uses
gevent
in combination withgeventwebsocket
. Monkey patching is correctly applied.Connected are around 500 users total, messages are coming in at around 5k/s (redis ops). CPU/memory etc. are not a problem and available plentiful.
The behaviour is that it takes around 9 seconds for the initial SocketIO packet to arrive at the client and then it basically stalls out, closes the connection and repeats the cycle with an ever increasing connection "delay". What I have noticed is that it seems to collect a couple hundred messages before sending anything out to the client. This shows also in the memory usage.
The server app basically only relays messages sent via external clients, so I am at a loss why this is happening. I have tried horizontally scaling the app, but that seems to make the issue worse.
core.py
socketio.py
run.py
py-spy dump
Beta Was this translation helpful? Give feedback.
All reactions